Annoying lack of integration in Fedora 7

I upgraded my laptop from Fedora Core 6 to Fedora 7 quite a while back and I’m still paying for it. The most painful part was that F7′s install CD apparently doesn’t support upgrading (although maybe the DVD does). I suppose I’m too used to distros doing the right thing and finding the install on the partition I point the installer at and not doing the right thing with respect to updating. I definitely told it not to format the disk. Regardless it didn’t do an update and did do a format. Which really sucked for the random little things I’ve not thought to backup at all.
Like the power management scripts I’d customised. I’ve been beating my head against F7 on this for a couple months now in random spurts of frustration at the state to which the machine wakes. My wireless wont work without serious beating and Compiz has left lovely artifacts all over the screen.
Finally this evening I realised my scripts weren’t executable. For at least the config variable setting one I thought it was just sourced and didn’t need to be. We I have working is via the two files below (plus a chmod +x on them).
It seriously annoys me though that the distro wouldn’t have some of these basic things done by default/automatically to get common hardware devices working with their suspend/resume script foo.


/etc/pm/config.d/config:

#ath_pci (and maybe wep mod?) doesn’t take sleep well
#(nor does NetworkManager surprisingly)
#possibly usb also problematic
SUSPEND_MODULES=”ath_pci wlan_wep ehci_hcd ohci_hcd uhci_hcd”
#video artifacts post resume:
#HIBERNATE_RESUME_POST_VIDEO=yes
#DISPLAY_QUIRK_VBE_POST=true
#DISPLAY_QUIRK_VBESTATE_RESTORE=true
DISPLAY_QUIRK_VBEMODE_RESTORE=true
#DISPLAY_QUIRK_VGA_MODE_3=true
#DISPLAY_QUIRK_DPMS_SUSPEND=true
#DISPLAY_QUIRK_DPMS_ON=true

/etc/pm/sleep.d/00tim:

#!/bin/bash
#based on direction from http://en.opensuse.org/Pm-utils
case $1 in
hibernate)
echo “No suspend to disk currently, or?”
;;
suspend)
#ath_pci (and maybe wep mod?) doesn’t take sleep well, these are
#also listed in /etc/pm/config.d/config’s SUSPEND_MODULES, FWIW
/usr/bin/killall -9 wpa_supplicant
/etc/init.d/NetworkManager stop
/etc/init.d/NetworkManagerDispatcher stop
/sbin/ifconfig ath0 down
/sbin/rmmod ath_pci
/sbin/rmmod wlan_wep
;;
thaw)
echo “oh, suspend to disk is over, we are resuming…”
;;
resume)
/sbin/rmmod ath_pci
/sbin/modprobe ath_pci
/sbin/ifconfig ath0 up
/sbin/iwlist scan
#compiz (+ ATI?) has video artifacts after sleep…
/bin/su – tpepper -c ‘/usr/bin/killall -9 gtk-window-decorator’
/bin/su – tpepper -c ‘/bin/env DISPLAY=:0.0 /usr/bin/gtk-window-decorator &’
/etc/init.d/NetworkManagerDispatcher start
/etc/init.d/NetworkManager start
;;
*) echo “somebody is calling me totally wrong.”
;;
esac

This entry was posted in Technology. Bookmark the permalink.

Leave a Reply