[SOLVED] Slim not loading on startup

Ask questions about Arch Linux ARM. Please search before making a new topic.

[SOLVED] Slim not loading on startup

Postby DrunkyMcStumble » Fri Mar 29, 2013 4:46 pm

I recently received a raspberry pi that I plan to use as an embedded car computer system, so I need to have everything on it as customised, streamlined and lightweight as possible to keep the performance nice and speedy - hence choosing Arch Linux as the OS, SLiM as the login manager and dwm as the window manager in X.

I'm completely new to Linux and to the ARM architecture, so I've just been picking things up as I've been going along. Installing everything seems to have gone OK, and I've followed the instructions in the wiki to get slim to load on startup by using: $this->bbcode_second_pass_code('', 'systemctl enable slim')

I can see it listed in the scrolling text during boot, but every time it just drops me into the usual shell login prompt rather than taking me into slim. It's not throwing up an error that I can see during boot, so if something's going wrong behind the scenes then it must be logging it to a file that I can't find. Any ideas?
Last edited by DrunkyMcStumble on Sun Mar 31, 2013 7:37 am, edited 1 time in total.
DrunkyMcStumble
 
Posts: 4
Joined: Fri Mar 29, 2013 3:57 pm

Re: Slim not loading on startup

Postby WarheadsSE » Fri Mar 29, 2013 9:01 pm

Check $this->bbcode_second_pass_code('', 'tree /etc/systemd/system/') for the service.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Slim not loading on startup

Postby DrunkyMcStumble » Sat Mar 30, 2013 6:41 am

Yep, it's there:
$this->bbcode_second_pass_code('', '/etc/systemd/system/
└── display-manager.service -> /usr/lib/systemd/system/slim.service')

EDIT:

OK, so after searching around I found the Slim logfile in /var/log/slim.log with the following contents:
$this->bbcode_second_pass_code('', 'slim: waiting for X server to begin accepting connections.
Giving up.
slim: unable to connect to X server')

Repeated a few times, once per login no doubt. So, it seems like it's an error with X and not slim. I tried to manually start X on its own using startx, then, to see what the problem might be and got the following error:

$this->bbcode_second_pass_code('', 'X.Org X Server 1.14.0
Release Date: 2013-03-05
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.34-1-FARM armv6l
Current Operating System: Linux RaspberryTy 3.6.11-8-ARCH+ #1 PREEMPT Sat Mar 9 00:38:58 UTC 2013 armv6l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0xd bcm2708.serial=0xd6b848d3 smsc95xx.macaddr=B8:27:EB:B8:48:D3 sdhci-bcm2708.emmc_clock_freq=100000000 vc-cma-mem=0/0x11800000@0xd400000 mem=0xc400000@0x0 mem=0x11800000@0xd400000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=noop rootwait
Build Date: 19 March 2013 12:22:42AM

Current version of pixman: 0.28.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 30 14:34:17 2013
(==) Using config directory: "/etc/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2

Fatal server error:
no screens found
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error')

"No screens found" - could be something with the video driver?
Here's the logfile:
$this->bbcode_second_pass_code('', '
[ 24187.267]
X.Org X Server 1.14.0
Release Date: 2013-03-05
[ 24187.299] X Protocol Version 11, Revision 0
[ 24187.309] Build Operating System: Linux 3.2.34-1-FARM armv6l
[ 24187.319] Current Operating System: Linux RaspberryTy 3.6.11-8-ARCH+ #1 PREEMPT Sat Mar 9 00:38:58 UTC 2013 armv6l
[ 24187.320] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0xd bcm
2708.serial=0xd6b848d3 smsc95xx.macaddr=B8:27:EB:B8:48:D3 sdhci-bcm2708.emmc_clock_freq=100000000 vc-cma-mem=0/0x11800000@0xd40
0000 mem=0xc400000@0x0 mem=0x11800000@0xd400000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 smsc95xx.turbo_mode=N dw
c_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=noop
rootwait
[ 24187.373] Build Date: 19 March 2013 12:22:42AM
[ 24187.383]
[ 24187.394] Current version of pixman: 0.28.2
[ 24187.413] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 24187.414] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 24187.454] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 30 14:47:34 2013
[ 24187.465] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 24187.467] (==) No Layout section. Using the first Screen section.
[ 24187.467] (==) No screen section available. Using defaults.
[ 24187.467] (**) |-->Screen "Default Screen Section" (0)
[ 24187.467] (**) | |-->Monitor "<default monitor>"
[ 24187.469] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 24187.469] (==) Automatically adding devices
[ 24187.469] (==) Automatically enabling devices
[ 24187.470] (==) Automatically adding GPU devices
[ 24187.470] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 24187.470] Entry deleted from font path.
[ 24187.471] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 24187.471] Entry deleted from font path.
[ 24187.471] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 24187.471] Entry deleted from font path.
[ 24187.471] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 24187.471] Entry deleted from font path.
[ 24187.471] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 24187.472] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 24187.472] Entry deleted from font path.
[ 24187.472] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 24187.472] (==) FontPath set to:
/usr/share/fonts/misc/
[ 24187.472] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 24187.472] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 24187.473] (II) Loader magic: 0x1c0ab0
[ 24187.473] (II) Module ABI versions:
[ 24187.473] X.Org ANSI C Emulation: 0.4
[ 24187.473] X.Org Video Driver: 14.1
[ 24187.473] X.Org XInput driver : 19.1
[ 24187.473] X.Org Server Extension : 7.0
[ 24187.484] Initializing built-in extension Generic Event Extension
[ 24187.494] Initializing built-in extension SHAPE
[ 24187.503] Initializing built-in extension MIT-SHM
[ 24187.513] Initializing built-in extension XInputExtension
[ 24187.522] Initializing built-in extension XTEST
[ 24187.531] Initializing built-in extension BIG-REQUESTS
[ 24187.539] Initializing built-in extension SYNC
[ 24187.548] Initializing built-in extension XKEYBOARD
[ 24187.556] Initializing built-in extension XC-MISC
[ 24187.564] Initializing built-in extension SECURITY
[ 24187.572] Initializing built-in extension XINERAMA
[ 24187.579] Initializing built-in extension XFIXES
[ 24187.587] Initializing built-in extension RENDER
[ 24187.594] Initializing built-in extension RANDR
[ 24187.602] Initializing built-in extension COMPOSITE
[ 24187.609] Initializing built-in extension DAMAGE
[ 24187.617] Initializing built-in extension MIT-SCREEN-SAVER
[ 24187.624] Initializing built-in extension DOUBLE-BUFFER
[ 24187.631] Initializing built-in extension RECORD
[ 24187.638] Initializing built-in extension DPMS
[ 24187.646] Initializing built-in extension X-Resource
[ 24187.653] Initializing built-in extension XVideo
[ 24187.660] Initializing built-in extension XVideo-MotionCompensation
[ 24187.667] Initializing built-in extension XFree86-VidModeExtension
[ 24187.673] Initializing built-in extension XFree86-DGA
[ 24187.680] Initializing built-in extension XFree86-DRI
[ 24187.686] Initializing built-in extension DRI2
[ 24187.686] (II) LoadModule: "glx"
[ 24187.690] (WW) Warning, couldn't open module glx
[ 24187.690] (II) UnloadModule: "glx"
[ 24187.691] (II) Unloading glx
[ 24187.691] (EE) Failed to load module "glx" (module does not exist, 0)
[ 24187.691] (==) Matched modesetting as autoconfigured driver 0
[ 24187.691] (==) Matched fbdev as autoconfigured driver 1
[ 24187.692] (==) Assigned the driver to the xf86ConfigLayout
[ 24187.692] (II) LoadModule: "modesetting"
[ 24187.694] (WW) Warning, couldn't open module modesetting
[ 24187.694] (II) UnloadModule: "modesetting"
[ 24187.694] (II) Unloading modesetting
[ 24187.695] (EE) Failed to load module "modesetting" (module does not exist, 0)
[ 24187.695] (II) LoadModule: "fbdev"
[ 24187.697] (WW) Warning, couldn't open module fbdev
[ 24187.697] (II) UnloadModule: "fbdev"
[ 24187.697] (II) Unloading fbdev
[ 24187.698] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 24187.698] (EE) No drivers available.
[ 24187.709]
Fatal server error:
[ 24187.710] no screens found
[ 24187.716] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 24187.737] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 24187.742] (EE)
[ 24187.753] Server terminated with error (1). Closing log file.')
DrunkyMcStumble
 
Posts: 4
Joined: Fri Mar 29, 2013 3:57 pm

Re: Slim not loading on startup

Postby pepedog » Sat Mar 30, 2013 10:15 pm

pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Slim not loading on startup

Postby DrunkyMcStumble » Sun Mar 31, 2013 7:36 am

Thanks, but I think I figured it out - turns out that I just hadn't installed the video drivers! I pacman'ed xf86-video-fbdev, xf86-video-vesa and mesa then rebooted and it all worked like a charm.

Are those the right drivers for the Pi? I noticed that they're just generic and wondered if there's anything more tailored (read: faster) to the Pi's GPU architecture.
DrunkyMcStumble
 
Posts: 4
Joined: Fri Mar 29, 2013 3:57 pm

Re: [SOLVED] Slim not loading on startup

Postby pepedog » Sun Mar 31, 2013 9:21 am

No accelerated X drives for the pi at the moment
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests