Comment 60 for bug 53310

Revision history for this message
TomasHnyk (sup) wrote :

The script does not work. I commented out the rm "$SAVE_TO" part and
0 gets saved to /var/run/\^sys\^devices\^pci0000\:00\^0000\:00\:1e.0\^0000\:02\:06.0\^rf_kill, so the script works, but as I said in the post above, it somehow cannot change the value back to 0 (it somehow makes sense, since 2 means wh switch is enabled).

I actually find out this:
1) when $KILL is 2, I cannot change it by echoing.
2) when $KILL is 1 or 0, I can. When it is 0, I can echo it to 1. Echoing 2 and 3 do nothing. When it is 1, echoing all 0,2 and 3 sets it to 0.

So, I guess, somewhere during suspend/resume, sw switch is disabled and only hw switch is enabled, but I do not pretend I understand it.