[Bug 1073669] Re: Bluetooth won't stay disabled after reboot due to early upstart job

2012-11-21 Thread Eugene T.
Ive had the same problem on Ubuntu 12.04 - bluetooth applet used to "forget" the state during shutdown, and switched bluetooth on during startup. I was able to solve it by removing my "internet-over-bluetooth" profile from NetworkManager. As I saw from the logs, even though I didnt use this "prof

[Bug 1073669] Re: Bluetooth won't stay disabled after reboot due to early upstart job

2012-11-21 Thread Eugene T.
Looks like the problem is caused by "race condition" during startup - by the moment "rfkill-restore" gets executed the driver for bluetooth is not completelly initialized, so the script "does not see" the device, thus cannot switch it on/off. At least it was like this on my Ubuntu 12.04. I "solved"

[Bug 1073669] Re: Bluetooth won't stay disabled after reboot due to early upstart job

2012-11-21 Thread Eugene T.
Ive just noticed the patch. Tried it - works for me. Maybe it still makes sense to add constant 1 sec delay in beginning of the script (and maybe reduce conditional delays to 3 sec to balance timings). I think its important, because for all users, who encounter this problem, the service is going to

[Bug 1073669] Re: Bluetooth won't stay disabled after reboot due to early upstart job

2012-11-23 Thread Eugene T.
@Kyle Ya, I agree, there are better solutions, 1 sec delay solution was just a compromise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1073669 Title: Bluetooth won't stay disabled after reboot due

[Bug 1073669] Re: Bluetooth won't stay disabled after reboot due to early upstart job

2012-11-23 Thread Eugene T.
Ive prepared the new implementation of the service. It has at least two advantages (compared to previous solutions) - it's adaptive (longer it takes to initialize devices - longer it waits between attempts, and these delays can be easily configured), and it does not reset already set devices. Becau