Issue with Radeon driver

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Issue with Radeon driver

Postby Vitoriung » Sun Sep 02, 2012 18:59

My card is radeon HD4800 and after recent update the flgrx driver stopped supporting my card so I switched to radeon.
Now xdm doesn't start on boot. I have to restart xdm 5 times to finally get the login screen (1st time I get black screen and 3 times I get mishmashed picture), after that I am up and running, but it's annoying to do that on each restart.


I did following:
Code: Select all
equo install x11-drivers/xf86-video-ati
equo remove ati-drivers ati-userspace
rm /etc/X11/xorg.conf
eselect mesa set auto
reboot


also from Joost's blog (https://joostruis.wordpress.com/2011/01 ... -catalyst/) step 4 and 5:
Code: Select all
Step 4: Add a custom parameter that enables KMS (Kernel Mode Setting)
Edit /etc/default/grub and add radeon.modeset=1 to the GRUB_CMDLINE_LINUX_DEFAULT variable

Step 5: Regenerate your grub.cfg file:
grub-mkconfig -o /boot/grub/grub.cfg


I had a chat on IRC with Sabayon guys, they told me everything is working fine, just XDM starts too soon. So I tried to change the xdm script from boot to default without any success.

Any idea what could go wrong?
Can you also advise in the mean time where to put the aditional script I made that would restart the xdm without me having to login to terminal as root and running it manually?
Vitoriung
Baby Hen
 
Posts: 12
Joined: Sat May 09, 2009 15:22
Location: London, UK

Re: Issue with Radeon driver

Postby Vitoriung » Sun Sep 02, 2012 20:21

Not sure if I can mark this as resolved, I figured out how to make the script running just after xdm starts.

I put following script into /etc/init.d/ and made it run in default init:

/etc/init.d/xdmrst

Code: Select all
#!/sbin/runscript

depend() {
     after xdm
     }

     start() {
      for i in {1..1}
      do
            /etc/init.d/xdm restart
      #sleep 5
      done
      } 


Before it was a loop {1..5}, but when this scripts runs immediately, only 1 restart is needed so no more delay at the start now, however I would call this not a solution, but rather a workaround.
Vitoriung
Baby Hen
 
Posts: 12
Joined: Sat May 09, 2009 15:22
Location: London, UK

Re: Issue with Radeon driver

Postby Vitoriung » Mon Sep 03, 2012 13:58

I cheked my Xorg log on the first start of xdm:

http://bpaste.net/show/43480/

There is one thing indicating xdm is starting too soon:
Code: Select all
[    36.553] (EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version mismatch.
[dri] This chipset requires a kernel module version of 1.17.0,
[dri] but the kernel reports a version of 2.17.0.[dri] Make sure your module is loaded prior to starting X, and
[dri] that this driver was built with support for KMS.
[dri] Aborting.
[    36.554] (II) UnloadModule: "radeon"
[    36.554] (II) UnloadSubModule: "int10"
[    36.554] (II) Unloading int10
[    36.554] (II) UnloadSubModule: "vgahw"
[    36.554] (II) Unloading vgahw
[    36.554] (EE) Screen(s) found, but none have a usable configuration.
[    36.554]
Fatal server error:
[    36.554] no screens found
[    36.554]
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[    36.554] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    36.554]
[    36.990] Server terminated with error (1). Closing log file.


Need to restart xdm 5 times again to get the login screen.

Is there any way how to check why xdm starts too early? or perhaps some modules needs to be specified manually to load on boot?
Vitoriung
Baby Hen
 
Posts: 12
Joined: Sat May 09, 2009 15:22
Location: London, UK

Re: Issue with Radeon driver

Postby lxnay » Mon Sep 03, 2012 18:57

Add "radeon" to modules= variable inside /etc/conf.d/modules.
Example:
Code: Select all
modules="radeon"
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3420
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: Issue with Radeon driver

Postby Vitoriung » Tue Sep 04, 2012 17:38

lxnay wrote:Add "radeon" to modules= variable inside /etc/conf.d/modules.
Example:
Code: Select all
modules="radeon"


Great that helped. Now I have issue with the blackscreen with mouse cursor. I have to restart xdm 1 time to workaround it.

Could that be an issue with lxdm, here is the log:

Code: Select all
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Sep  4 17:16:40 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
** Message: add 0x755460

** Message: prepare greeter on :0

** Message: start greeter on :0

/usr/share/lxdm/themes/Sabayon/gtkrc:10: Unable to locate image file in pixmap_path: "kgdm.jpg"
/usr/share/lxdm/themes/Sabayon/gtkrc:13: Background image options specified without filename


Thanks
Vitoriung
Baby Hen
 
Posts: 12
Joined: Sat May 09, 2009 15:22
Location: London, UK


Return to Hardware

Who is online

Users browsing this forum: No registered users and 0 guests