[Debian-eeepc-devel] suggestions for eeepc-acpi-scripts
Niccolo Rigacci
niccolo at rigacci.org
Sun Jun 8 22:04:58 UTC 2008
On Sun, Jun 08, 2008 at 11:47:50PM +0200, jcsid wrote:
> I got it!
> Pciehp is not loaded at startup: I wrote
> pciehp pciehp_force=1
> in /etc/modules, and rewrote my wireless.sh:
Ok, I have pciehp in /etc/modules too. The module pciehp is
loaded at boot in Xandros too, if I remember well.
I also copied the file /etc/modprobe.d/pcie from Xandros:
options pciehp pciehp_force=1
install pciehp /sbin/modprobe --ignore-install pciehp pciehp_force=1; /sbin/modprobe ath_pci
> #!/bin/sh
>
> wlan_control=/proc/acpi/asus/wlan
> case $1 in
> on)
> if [ $(cat $wlan_control) = 0 ]; then
> echo 1 > $wlan_control
> modprobe ath_pci
> ifup ath0
> fi
Yes, this make sense. Removing and reloading pciehp is not
required as far I know. In fact this is the Xandros
/etc/acpi/wlan.sh:
echo 1 > /proc/acpi/asus/wlan
sleep 1
if [ -z "`grep ^ath_pci /proc/modules`" ]; then
modprobe ath_pci
fi
sleep 1
/sbin/ifconfig ath0 up
I notice just now, another sleep after enabling the wlan acpi!
--
Niccolo Rigacci
Firenze - Italy
More information about the Debian-eeepc-devel
mailing list