Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 28 Jul 2014, 10:39
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
[CLOSED] Radeon configuration not restored at Restart X
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Sun 12 Aug 2012, 09:48    Post subject:  [CLOSED] Radeon configuration not restored at Restart X  

I need help here.

Laptop: Compaq Presario 1712AP ATI Radeon Mobility M6 LY

This laptop has a S-video output. I am using a 7" monitor with S-video input (in parallel to a VGA monitor). As usual, the quality of the S-video picture is quite bad compared to VGA. Nothing new there. But the picture quality can be improved by using the radeon driver instead of the i915 (Intel) driver, which is normally activated by default. So I made the following changes:

In /etc/modprobe.d:
i915.config: options modeset i915=0
radeon.conf: options modeset radeon=1

In /etc/X11/xorg.conf Section "Device" (changes only):
Option "SWcursor" "False" # Faster than default "True"
Option "AGPmode" "4"
Option "AGPFasttWrite" "True" #Faster than default "False"
Option "AGPSize" "32" #Default=8
Option "EnableDepthMoves" "True"
Option "EnablePageFlip" "True" #Faster than default "False"
Option "SubPixelOrder" "RGB" #Default is "NONE" for CRT, "RGB" for digital panels
Option "AccelMethod" "EXA" #Default is "XAA", "EXA" may be less stable
Option "TVDACLoadDetect" "True" #Detects if S-video cable is inserted. Default is "False"
Option "ForceTVOut" "True" #Turns S-video output on at boot. Default is "False"
Option "TVStandard" "pal"
Option "DefaultTVDACAdj" "True"

I suppose that Option "DefaultTVDACAdj" brings better S-video output quality. Anyway, it is a lot better than before.

However, problems arise when I reboot and/or restart X from the shutdown menu or restart JWM. I get black lines and strange characters in e.g. Geany, some programs freeze. Only a hard shutdown and restart solve that. To be clear: reboot, restart X, restart JWM do not help.

It seems that modprobe.d and/or xorg.conf are not considered unless a hard shutdown and restart are done. This can be considered a workaround, but I would like to know how this works to improve efficiency while developing new applications (you know how it is: crashes all the time).

I look forward to suggestions.

Last edited by linuph on Thu 30 Aug 2012, 10:05; edited 3 times in total
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Sun 12 Aug 2012, 10:47    Post subject:  

Does the i915 driver show up in
Code:
lsmod

command output ?

Have you used the bootmanager to BLACKLIST the i915 ?
Back to top
View user's profile Send private message Visit poster's website 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Sun 12 Aug 2012, 21:09    Post subject:  

Thanks for the suggestion.

i915 is not listed with lsmod. However, I saw that radeonfb is blacklisted so I took it out of the blacklist. Testing further....
Back to top
View user's profile Send private message 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Wed 15 Aug 2012, 04:21    Post subject:  

radeonfb does not make a difference...as I expected. I have not found what is wrong... It's getting on my nerves.

The reason why I have to restart X often is that at boot the background wallpaper and drive icons are often not loaded. I have had that problem ever since, irrespective of i915 or radeon configuration. Restart X fixes that but not with the radeon configuration: the screen gets messed up and, eventually, my screen blanks and Puppy freezes.

So, 2 problems:
1. Missing wallpaper and drive icons at start up (not always but often).
2. Restart X messes up because of the radeon configuration.

A reboot right after boot also fixes the wallpaper and drive icons and there are no issues with the radeon configuration. But that's an awkward way to get your system going.

So, the questions:
1. How to solve the problem of wallpaper/drive icons not loading at boot?
2. What is the difference between restart X and reboot w.r.t. xorg.conf?
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Wed 15 Aug 2012, 06:37    Post subject:  

If you are running frugal then check /etc/X11/* for hidden *.wh.* files , also in /initrd/pup_rw and /initrd/pup_ro1 .

You probably need to delete them. They are from the Aufs kernel driver that manages the layered filesystem . That kernel driver can be configured to show them or not.
Quote:
/etc/modules/DOTconfig-K2.6.30.5-01SEPT09-TICKLESS-SMP:# CONFIG_AUFS_SHWH is not set
Back to top
View user's profile Send private message Visit poster's website 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Wed 15 Aug 2012, 10:10    Post subject:  

I did find *.wh.* files in:

/inird/pup_ro1/dev:
.wh.snd (file, 0 bytes)

/initrd/pup_rw
.wh..wh.orph (directory, empty)
.wh..wh.plnk (directory, file 8014.7027):
.wh..wh.aufs (file, 0 bytes)

I didn't look further deep down in directories because I can't use pfind to find *.wh.* files. Reason: pfind doesn't allow to change "Exclude iinitrd/pup_*' into something else (a bug?)

I moved the above files to an external usb flash and shut down/restarted. Result: same problem, no wallpaper, no drive icons. I then did a reboot from the menu and wallpaper and drive icons were back.

I changed the title of this post to "Radeon configuration not restored at Restart X?", because reboot does restore wallpaper and icons (not only drive icons but all icons).

Note: I use Dpup Exprimo 5.X.3.4.2.9 "B" (latest from pemasu), boot from DVD with squeezesave from another usb flash.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3956
Location: Kiel,Germany

PostPosted: Wed 15 Aug 2012, 10:43    Post subject:  

Code:
find /initrd/pup_rw -name "*wh*" -delete
find /initrd/pup_ro1 -name "*wh*" -delete

I don't use pfind anymore, too much features and difficult to work with if needs to find things more than one at a time.

And of course you can use rox to navigate to /initrd/* directories .

Other than whi[tp]eout files i have no idea but probably xwin + ddcprobe + xorgwizard-automatic are fooling around .
Back to top
View user's profile Send private message Visit poster's website 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Thu 16 Aug 2012, 09:39    Post subject:  

I reactivated i915.conf in /etc/modeprobe.d. There are no problems with 'Restart X' or 'Restart WM'. Both call xwin and there problems arise with radeon.conf.

The problem of missing wallpaper and icons remains. The only workaround is 'Restart X' or 'Restart WM'. That also works from terminal but I would like to have it automatically after JWM is running.

I'm just puzzled about where to put a script that runs 'Restart X' or 'Restart WM' once after JWM has started. Any ideas?
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 16 Aug 2012, 10:57    Post subject:  

linuph wrote:
Missing wallpaper and drive icons at start up (not always but often).

Will the following command also restore your wallpaper and icons?
Code:
rox -p /root/Choices/ROX-Filer/PuppyPin

If it does, please post the output of the following command:
Code:
grep -m 1 -i '^cpu MHz' /proc/cpuinfo

With old CPUs, Puppy is supposed to wait a bit after starting X before starting ROX-Filer. The fact that you sometimes get wallpaper and icons, but often don't, indicates that perhaps the wait is not quite long enough for your CPU. Getting your CPU speed (with the above command) may help me to suggest an adjustment.
Back to top
View user's profile Send private message 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Thu 16 Aug 2012, 22:09    Post subject:  

rox -p /root/Choices/ROX-Filer/PuppyPin:
Brings back wallpaper and icons but not the drive icons.

grep -m 1 -i '^cpu MHz' /proc/cpuinfo:
cpu MHz :1000.000


From start of .xinitrc the approximate timing is:
- 10 seconds until the cursor appears
- another 5-10 seconds until the tray appears
- quickly after that nothing or wallpaper/icons

I have sda1, sda2, sdb1 and sr0. sda and sdb are flash drives. sda1 contains the puppy save file. sr0 is a DVD ROM drive. I do not have a HD. Boot is always from sr0. I use JWM.

In the seldom cases where wallpaper and icons are displayed from boot, the sda1 icon is always missing. RestartWM or Restart X displays wallpaper and all drive icons incl. sda1. I noticed that before the drive icons are displayed, sr0 starts spinning, like it does with pmount.

Could it be that the DVD ROM is too slow at initial boot? And/or is initialization at the "wrong" place?
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Fri 17 Aug 2012, 00:04    Post subject:  

Thanks for the info on CPU speed and timing.

If your Puppy is like mine, it will give a two second sleep delay soon after starting X to, as Barry said, "let the dust settle", and it will give your PC an extra delay because your CPU is slower than 1100 MHz. In your case it will give you an extra second, for a total of three seconds.

By the way, what Puppy are you using? It might use different delay values.

Perhaps there needs to be more of a delay before starting ROX-Filer, and perhaps it needs to be just before starting ROX-Filer, rather than soon after starting X.

You could experiment by backing-up your /root/.xinitrc file and adding a delay in it just before the call to rox. For instance, you could change this:
Code:
rox -p /root/Choices/ROX-Filer/PuppyPin

to this:
Code:
sleep 7
rox -p /root/Choices/ROX-Filer/PuppyPin

Seven seconds should be way more than enough, but best to start high to see if it helps at all. If it does, you can later try smaller numbers to minimize the delay.

If this helps to get most of your icons and wallpaper to appear, but you are still missing one or more drive icons, we can look at that next.
Back to top
View user's profile Send private message 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Fri 17 Aug 2012, 07:34    Post subject:  

Thanks a lot for your reply, npierce. Getting help from you and of many others in this forum is what makes Puppy Linux great and greater.

I'm using Dpup Exprimo 5.X.3.4.2.9.

I'll be out of town a couple of days. On return I will certainly follow up.

Thanks again.
Back to top
View user's profile Send private message 
linuph


Joined: 03 Jun 2012
Posts: 128
Location: Philippines

PostPosted: Wed 22 Aug 2012, 05:11    Post subject:  

Adding an extra delay in .xinitrc did not show the sda1 icon. I reformatted sda with one partition and put the Puppy save file in it and rebooted. Now only the sr0 icon shows, no sda or sdb. After RestartX even sr0 has disappeared.

It is not a blocking issue: I can find all drives back with ROX filer or, even better, with PcmanFM. But it is a strange phenomenon.

Maybe it has something to do with my setup: I boot from DVD and load the Puppy save file from a USB flash, no HD. USB is initiated by Puppy because my BIOS doesn't. Maybe not so usual and not designed with that in mind.
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Wed 22 Aug 2012, 18:06    Post subject:  

linuph wrote:
Adding an extra delay in .xinitrc did not show the sda1 icon.

I'd hoped that that delay would help the wallpaper to appear consistently. If it also helped with the drive icons that would be a bonus. Did it help with the wallpaper?

Also in /root/.xinitrc (near the beginning) is this line:
Code:
/sbin/pup_event_frontend_d & #v403

The script called on that line creates the drive icons (among other things). It has a delay for slow processors built into it, but perhaps we need to add a little more for your system. So try adding a delay just before that line, like so:
Code:
sleep 7
/sbin/pup_event_frontend_d & #v403

Again, seven seconds should be more than enough. If it helps, you can later try smaller numbers to minimize the delay.

If the previous delay you added helped with the wallpaper, leave it in as well.

linuph wrote:
I reformatted sda with one partition and put the Puppy save file in it and rebooted. Now only the sr0 icon shows, no sda or sdb. After RestartX even sr0 has disappeared.

That's sad news. And, if I remember correctly, the Puppy save file was on sda1 before, so that hasn't changed, and I wouldn't think that having one partition instead of two would be a problem.

And I wouldn't think that the added delay would cause that problem. Perhaps you've already tried restoring the old .xinitrc, if not it would probably be worth trying just to be sure.

Can you think of any other changes that might have caused this? It would certainly be easier to troubleshoot if we could get back to where "RestartX" would fix the icons.

linuph wrote:
Maybe it has something to do with my setup: I boot from DVD and load the Puppy save file from a USB flash, no HD.

Possibly, but I would think that if your Puppy can find and load the save file with your setup, it certainly should be able to see the drive later on when it is creating the icons. It does load the save file OK, doesn't it?

Anyway, it is worth trying the second delay, although it seems like there may be something else going on now that "RestartX" no longer fixes things.
Back to top
View user's profile Send private message 
beau_tox

Joined: 01 Aug 2012
Posts: 22
Location: Sacramento CA

PostPosted: Wed 22 Aug 2012, 18:58    Post subject: Radeon driver problem
Subject description: Radeon driver problem
 

I had a similar problem using the radeon driver. Everything worked except Shutdown to Prompt and Restart X would crash the system.
I also had the missing icons and wallpaper upon hard reboot.

I switched to the vesa driver and all these problems went away.

I finally installed the ati fglrx driver which worked without any problems.

My problem description was posted in the Users Forum.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1060s ][ Queries: 12 (0.0123s) ][ GZIP on ]