Posts: 200
lagopus
Joined: 15 Oct 2008
#1
Booting live from CD, I was stopped at login prompt in console mode.

slim.log:

Code: Select all

slim: waiting for X server to begin accepting connections.
..
..
.
Giving up.
slim: unable to connect to X server
Xorg.0.log:

Code: Select all

[   341.023] (==) Log file:"/var/log/Xorg.0.log", Time: Mon Jul 13 02:07:56 2015
[   341.027] (==) Using config file:"/ etc/X11/xorg.conf"
[   341.027] (==) Using config directory:"/ etc/X11/xorg.conf.d"
[   341.027] (==) Using system config directory"/usr/share/X11/xorg.conf.d"
[   341.047] (==) No Layout section.  Using the first Screen section.
...
[   343.205] (II) LoadModule:"sisimedia"
[   343.206] (II) Loading /usr/lib/xorg/modules/drivers/sisimedia_drv.so
[   343.483] (II) Module sisimedia: vendor="X.Org Foundation"
[   343.483]     compiled for 1.16.4, module version = 0.8.0
[   343.483]     Module class: X.Org Video Driver
[   343.483]     ABI class: X.Org Video Driver, version 18.0
[   343.483] (II) SIS: driver for SiS chipsets: SIS5597/5598, SIS530/620,
    SIS6326/AGP/DVD, SIS300/305, SIS630/730, SIS540, SIS315, SIS315H,
    SIS315PRO/E, SIS550, SIS650/M650/651/740,
    SIS[M]661[F|M]X/[M]741[GX]/[M]760[GX]/[M]761[GX]/662, SIS330(Xabre),
    SIS340, [M]670/[M]770[GX], [M]671/[M]771[GX]
[   343.483] (II) SIS: driver for XGI chipsets: Volari Z7 (XG20),
    Volari V3XT/V5/V8/Duo (XG40/XG42)
[   343.483] (++) using VT number 7

[   343.613] (EE) No devices detected.
[   343.613] (EE) 
Fatal server error:
[   343.613] (EE) no screens found(EE) 
[   343.613] (EE) 
Generated xorg.conf:

Code: Select all

#----------------------------------------------------------------------
# xorg.conf file
#
# Generated by make-xorg-conf sometime around Mon Jul 13 02:02:55 CEST 2015
...
#----------------------------------------------------------------------
Section"Monitor"
    Identifier"Monitor0"
    Option"DPMS""true"
EndSection

Section"Device"
    Identifier"Device0"
    Driver    "sisimedia"
EndSection

Section"Screen"
    Identifier"Screen0"
    Monitor"Monitor0"
    Device "Device0"
    SubSection"Display"
        Modes"1280x1024""1333x768""1024x768""800x600"
    EndSubSection
EndSection
inxi -F

Code: Select all

Graphics: Card: Advanced Micro Devices [AMD/ATI] RV280 [Radeon 9200]
          Display Server: X.org 1.16.4 driver: N/A 
          tty size: 233x60 Advanced Data: N/A for root out of X


Quick fix:

Remove / etc/X11/xorg.conf generated by make-xorg-conf
and from the console, as root:

Code: Select all

# slim
after a successful start of Xorg, inxi -F:

Code: Select all

Graphics:  Card: Advanced Micro Devices [AMD/ATI] RV280 [Radeon 9200]
           Display Server: X.org 1.16.4 drivers: ati,radeon (unloaded: fbdev,vesa)
           tty size: 172x51 Advanced Data: N/A for root
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
Thanks lagopus! It's good to see you back.

We added a sisimedia kernel driver from outside the vanilla Linux kernel tree. It does not get loaded automatically by X so for people who have SisS graphics hardware, X was not using their hardware. To get around this, we detect the graphics hardware and if it supports the"sis" or"sis-agp" kernel module then we create an xorg.conf file as per the sisimedia README so people with this hardware boot to X with their graphics hardware supported automatically.

It appears something has gone wrong on your system but I don't know what. I'd like to see the output of the following command so I can determine what hardware is on your system:

Code: Select all

find /sys/devices -name modalias -print0 | xargs -0 sort -u
If you boot the live system in failsafe mode or with the"load=all" cheat then output of that command will be included in the /var/log/live/initrd.log file and you can just attach that (after gzipping it to get past the simple filename filter on this site).

One possibility is that you have both Radeon and SiS graphics on your machine. It would explain all the symptoms. If that is the case then that has exposed a bug in our code which should be easy to fix. In the meantime, the"noxorg" cheat should prevent an xorg.conf file from being automatically generated. It has been a struggle to maintain OOTB support for older hardware with the newer version of Xorg. There have been a number of special cases to deal with.

Once I track down and fix the problem, I will make a new initrd.gz available and also an xdelta3 patch for updating the iso file.

Again, it is great to see you back here. I wish it was under more auspicious circumstances. I appreciate you reporting the problem. Once I sort out what went wrong, I hope you will help us see if the fix works for you.
Posts: 200
lagopus
Joined: 15 Oct 2008
#3
Thanks BitJam for your kind words.

I already issued the

Code: Select all

find /sys/devices -name modalias -print0 | xargs -0 sort -u
command I discovered in the init script, but was unable to interpret the cryptic output.

I'll send you the output tomorrow (not on this system now).

Indeed this is a desktop I assembled some years ago, with a SiS chipset (sound and video) on the motherboard (AsRock?), and a add on ATI Radeon card. This may be the source of the problem.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#4
lagopus wrote:Indeed this is a desktop I assembled some years ago, with a SiS chipset (sound and video) on the motherboard (AsRock?), and a add on ATI Radeon card. This may be the source of the problem.
Ah. That explains it. I don't really need the output now. This is what I was trying to figure out.

Can you boot via LiveUSB instead of LiveCD? If so I can provide a new initrg.gz file for you to try. Otherwise I can provide an xdelta3 patch that will let you modify the .iso file and burn a new liveCD with the changes. With this approach, it would be help if I knew which iso file you were booting from.

I'm sorry for the inconvenience. I appreciate your help. I feel we were lucky that you have a SiS hardware combined with other graphics hardware so we could easily find this bug.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#5
lagopus wrote:I already issued the

Code: Select all

find /sys/devices -name modalias -print0 | xargs -0 sort -u
command I discovered in the init script, but was unable to interpret the cryptic output.
Those are module aliases for the hardware on your system. With another couple of stages of processing you can get the list of modules that are associated with your specific hardware:

Code: Select all

 find /sys/devices -name modalias -print0 | xargs -0 sort -u \
    | xargs modprobe -a -D -q 2>/dev/null | sort -u \
    | sed -n -r"s=^insmod [^ ]*/([^.]*)\.ko.*=\1=p"
I ask for the raw modalias output (and record it in initrd.log when"load=all" is used) because this last step depends on which modules are available to the kernel. A modalias line will only be converted to a module name if that module is available. For example, the initrd only has 3.2 Meg of modules while the linuxfs file has 119 Meg. So I have gotten into the habit of requesting the aliases. Also, they require less typing. I should probably add an all-aliases command (or something like that) to the initrd so people can simply type in that command on the live system.

As I said before, I don't need that output now because you already told me you have SiS graphics hardware on your system.
Posts: 200
lagopus
Joined: 15 Oct 2008
#6
Just for confirmation, find attached the outputs of:

Code: Select all

find /sys/devices -name modalias
and

Code: Select all

find /sys/devices -name modalias -print0 | xargs -0 sort -u | xargs modprobe -a -D -q
Note that the monitor at full resolution is detected at some moment in the init process (output to framebuffer?)
Can you boot via LiveUSB instead of LiveCD? If so I can provide a new initrg.gz file for you to try.
I prefer a new init file over a patch - (a fix in or near detect_sisimedia_driver()?)
I have yet to test boot from LiveUSB (I forgot how **slow** it is running form LiveCD!)