LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2007, 11:16 AM   #1
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 432
Blog Entries: 1

Rep: Reputation: 41
Question Direct Renering when I restart X without reboot.


I have an ATI 9600, running on Slack 11, with 2.4.33.3.

When I boot my computer and load X, Direct rendering works.

When I close X and restart it again later (without rebooting) Direct Rendering does not work.

Why? How can I fix it?

Thanks.

Code:
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AR [Radeon 9600] (prog-if 00 [VGA])
        Subsystem: Giga-byte Technology Unknown device 4040
        Flags: bus master, 66MHz, medium devsel, latency 255, IRQ 9
        Memory at d8000000 (32-bit, prefetchable) [size=128M]
        I/O ports at d800 [size=256]
        Memory at c7000000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at d7fe0000 [disabled] [size=128K]
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2

01:00.1 Display controller: ATI Technologies Inc RV350 AR [Radeon 9600] (Secondary)
        Subsystem: Giga-byte Technology Unknown device 4041
        Flags: bus master, 66MHz, medium devsel, latency 64
        Memory at c8000000 (32-bit, prefetchable) [size=128M]
        Memory at c6800000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [50] Power Management version 2
Code:
Module                  Size  Used by    Tainted: P
usb-storage            66848   0
fglrx                 390760   0
snd-seq-oss            23104   0  (unused)
snd-seq-midi-event      3208   0  [snd-seq-oss]
snd-seq                33552   2  [snd-seq-oss snd-seq-midi-event]
snd-pcm-oss            28928   0
snd-mixer-oss          11928   0  [snd-pcm-oss]
nfsd                   72880   8  (autoclean)
keybdev                 2020   0  (unused)
mousedev                4308   1
hid                    22020   0  (unused)
usbmouse                2072   0  (unused)
input                   3200   0  [keybdev mousedev hid usbmouse]
uhci                   25404   0  (unused)
usbcore                61484   1  [usb-storage hid usbmouse uhci]
snd-cs46xx             62536   2
gameport                1436   0  [snd-cs46xx]
snd-ac97-codec         68160   0  [snd-cs46xx]
snd-pcm                52804   1  [snd-pcm-oss snd-cs46xx snd-ac97-codec]
snd-timer              13168   0  [snd-seq snd-pcm]
snd-rawmidi            12224   0  [snd-cs46xx]
snd-seq-device          3716   0  [snd-seq-oss snd-seq snd-rawmidi]
snd                    34304   1  [snd-seq-oss snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-cs46xx snd-ac97-codec snd-pcm snd-timer snd-rawmidi snd-seq-device]
soundcore               3684   8  [snd]
snd-page-alloc          4980   0  [snd-seq-oss snd-seq snd-mixer-oss snd-cs46xx snd-pcm snd-timer snd-rawmidi snd-seq-device snd]
pcmcia_core            42820   0
ide-scsi               10224   0
3c59x                  26832   1
 
Old 06-21-2007, 12:03 PM   #2
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
after you close X try: rmmod -f fglrx

then restart X, if that works you can add the line to your .xinitrc
 
Old 06-21-2007, 08:02 PM   #3
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 432

Original Poster
Blog Entries: 1

Rep: Reputation: 41
That worked! Now where/how do I put it in my .xinitrc?
 
Old 06-22-2007, 10:03 AM   #4
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
sorry, I think .xinitrc is not the best place for it. Its probably better to create a script in /etc/X11

something like this:
Code:
echo "Removing fglrx: rmmod -f fglrx"
rmmod -f fglrx
call it whatever you want, then chmod +x /etc/X11/<filename>

then in your ~/.xinitrc:
Code:
sh /etc/X11/<filename>
...
# plus any other commands you need
#
startxfce4    #or whatever WM you use
i can't remember if this is exactly how I did it (I'm at a different computer right now) but something along these lines should work.

I might have a thread here about this somewhere...

<edit> here it is

Last edited by bioe007; 06-22-2007 at 10:06 AM.
 
Old 06-23-2007, 12:10 AM   #5
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 432

Original Poster
Blog Entries: 1

Rep: Reputation: 41
the script should be: ????

echo "Removing fglrx: rmmod -f fglrx"
su -c rmmmod -f fglrx

Shouldn't my .xinitrc be in my home directory? I'm not seeing it there.

Last edited by mpyusko; 06-23-2007 at 12:13 AM.
 
Old 06-24-2007, 04:40 PM   #6
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
sorry to be clear:

make a script (as root)
Code:
vi /etc/X11/fixmymodules
#!bin/sh
echo "Removing fglrx: rmmod -f fglrx"
rmmod -f fglrx
save the file, and make it exectutable: chmod +x /etc/X11/fixmymodules

then edit ~/.xinitrc
Code:
sh /etc/X11/fixmymodules
...
# plus any other commands you need
#
startxfce4    #or whatever WM you use
i think that should work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot restart, reboot, or shutdown slimfadey Linux - Newbie 3 04-28-2005 07:07 PM
reboot and restart problem Fedora Dannydy Linux - Hardware 3 10-13-2004 07:14 PM
Always have to reboot to restart dsl sh1ft Slackware 8 04-21-2004 09:49 PM
SuSE7.2 Firewall, how do I restart it, without a reboot Led*Zep Linux - Security 1 03-19-2003 09:59 AM
Named cache kept through restart or reboot Supp0rtLinux Linux - Networking 2 01-21-2002 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration