JohnnyMnemonic ha scritto:Beh considerando che il mio è HP e il tuo Toshiba, tentar non nuoce
ok, se oggi ho un'oretta, provo e poi relaziono...

Moderatore: Staff
JohnnyMnemonic ha scritto:Beh considerando che il mio è HP e il tuo Toshiba, tentar non nuoce







tigerwalk ha scritto:così dovrebbe funzionare (dopo provo) ma mi chiedevo se esiste un modo per far funzionare il tutto automaticamente.

conraid ha scritto:tigerwalk ha scritto:così dovrebbe funzionare (dopo provo) ma mi chiedevo se esiste un modo per far funzionare il tutto automaticamente.
Metti i comandi nello script che gestisce la chiusura del coperchio


man modprobe
#!/bin/sh
if [ "`cat /proc/acpi/button/lid/LID/state | grep open`" = "" ]; then
echo -n mem > /sys/power/state
fi #!/bin/sh
# Default acpi script that takes an entry for all actions
IFS=${IFS}/
set $@
case "$1" in
button)
case "$2" in
power) /sbin/init 0
;;
lid) /etc/acpi/lid.sh
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*)
logger "ACPI group $1 / action $2 is not defined"
;;
esac
#!/bin/sh
if [ "`cat /proc/acpi/button/lid/LID/state | grep open`" = "" ]; then
echo -n mem > /sys/power/state
fi
if [ -x /etc/rc.d/rc.bluetooth ]; then
/etc/rc.d/rc.bluetooth stop
fi
modprobe -r bluetooth


tigerwalk ha scritto:non ho fatto test particolari, solo che dando il comando di avvio da terminale del servizio bluetooth, pur riavviandosi correttamente non rileva il dispositivo interno.

# modprobe -r bluetooth
FATAL: Module bluetooth is in use.
tigerwalk ha scritto:volevo provare ma...
- Codice: Seleziona tutto
# modprobe -r bluetooth
FATAL: Module bluetooth is in use.
come faccio a vedere da chi è usato?
# /etc/rc.d/rc.bluetooth stop
# /etc/rc.d/rc.bluetooth stop
Visitano il forum: Nessuno e 0 ospiti