Author Topic: LED indicators  (Read 3364 times)

Offline hofy

  • Member
  • ***
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
LED indicators
« on: October 13, 2014, 11:35:23 am »
Hi,

I have peppermint 5 on an ancient asus w5a laptop and I wonder if there is any way I can turn off the bluetooth LED indicator? I can't find any keyboard shortcut that would service the indicator. Wifi indicator sort of shuts down after rfkill, but on bluetooth this has absolutely no effect. the wireless mouse continues to work (shipped with laptop) no matter what.
is there a command that would turn off all LEDs? I tried xset led from 1 to 10, nothing.

it's not a big deal, but if there's a trick, I want to know :)
thank you

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: LED indicators
« Reply #1 on: October 13, 2014, 02:02:37 pm »
I take it you want to disable bluetooth all together ?

What happens if you run:
Code: [Select]
sudo echo "0"  > /proc/acpi/asus/bluetooth
and what's the output from:
Code: [Select]
lsmod | grep asusand
Code: [Select]
rfkill list


For my reference:
https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/25610
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Member
  • ***
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: LED indicators
« Reply #2 on: October 14, 2014, 01:40:37 am »
Bluetooth I have disabled via the manager. I am not aware of a hardware switch. in WinXP the indicator is off.

output :
hofy@hofy-W5A ~ $ sudo echo "0"  > /proc/acpi/asus/bluetooth
bash: /proc/acpi/asus/bluetooth: No such file or directory
hofy@hofy-W5A ~ $ lsmod | grep asus
asus_laptop            23897  0
sparse_keymap          13708  1 asus_laptop
input_polldev          13648  1 asus_laptop
hofy@hofy-W5A ~ $ rfkill list
0: hci0: Bluetooth
   Soft blocked: yes
   Hard blocked: no
1: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: LED indicators
« Reply #3 on: October 14, 2014, 08:21:01 am »
What's the output from:
Code: [Select]
lsmod
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Member
  • ***
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: LED indicators
« Reply #4 on: October 16, 2014, 04:59:04 am »
lsmod output:
Spoiler (click here to view / hide)
[close]
apparently bluetooth module gets loaded even tho I disabled it in bluetooth manager.
i tried to modprobe -r bluetooth and dependencies bnep, rfcomm, btusb. only btusb didn't give errors:

hofy@hofy-W5A ~ $ sudo modprobe -rf btusb
hofy@hofy-W5A ~ $ sudo modprobe -rf rfcomm
modprobe: FATAL: Module rfcomm is in use.
hofy@hofy-W5A ~ $ sudo modprobe -rf bnep
modprobe: FATAL: Module bnep is in use.
hofy@hofy-W5A ~ $ sudo modprobe -rf bluetooth
modprobe: FATAL: Module bluetooth is in use.

how to stop and remove these?
thanks
« Last Edit: October 16, 2014, 05:13:51 am by AndyInMokum »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: LED indicators
« Reply #5 on: October 16, 2014, 05:03:28 am »
What's the output from:
Code: [Select]
dpkg -l | grep blue
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: LED indicators
« Reply #6 on: October 16, 2014, 05:12:58 am »
Hi hofy.  I see that the output you returned is very long.  In future, could you please encapsulate long outputs with the SpSpoiler function.  This is located just above the crying  :'( emoticon.  It makes it much easier for people to read and keeps things neat and tidy.  This time I’ve done this for you.  Thanks in advance ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline hofy

  • Member
  • ***
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: LED indicators
« Reply #7 on: October 16, 2014, 05:19:12 am »
hofy@hofy-W5A ~ $ dpkg -l | grep blue
ii  blueman                                    1.23-git201403102151-1ubuntu1          i386         Graphical bluetooth manager
ii  bluez                                      4.101-0ubuntu13                        i386         Bluetooth tools and daemons
ii  libbluetooth3:i386                         4.101-0ubuntu13                        i386         Library to use the BlueZ Linux Bluetooth stack
ii  libgnome-bluetooth11                       3.8.2.1-0ubuntu4.1                     i386         GNOME Bluetooth tools - support library


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: LED indicators
« Reply #8 on: October 16, 2014, 06:19:08 am »
OK, if you don't want bluetooth at all, run:
Code: [Select]
sudo apt-get remove --purge blueman bluezthen
Code: [Select]
sudo gedit /etc/modprobe.d/blacklist.confwhen a file opens that already has some stuff in it, addd a single NEW line at the bottom that reads:-

blacklist bluetooth

SAVE the file and exit gedit.

REBOOT.

Now post the output from:
Code: [Select]
lsmod | grep bluetooth
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Member
  • ***
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: LED indicators
« Reply #9 on: October 17, 2014, 03:54:41 am »
I did as suggested, after reboot I modprobed btusb and bluetooth, blacklisted btusb as well and it no longer shows in lsmod or rfkill:

hofy@hofy-W5A ~ $ lsmod | grep bluetooth
hofy@hofy-W5A ~ $ rfkill list
0: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no
hofy@hofy-W5A ~ $

strangely enough, the LED is still ON! and the mouse works as well. at startup, I can read in the boot messages:
stopping bluetooth daemon [fail]


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: LED indicators
« Reply #10 on: October 17, 2014, 09:42:58 am »
OK it must be part of the kernel then

As long as blacklist.conf still contains the "blacklist bluetooth" line, run:
Code: [Select]
sudo update-initramfs -uNow try rebooting
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Member
  • ***
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: LED indicators
« Reply #11 on: October 17, 2014, 10:47:19 am »
same as my previous post, no change.

Offline hofy

  • Member
  • ***
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: LED indicators
« Reply #12 on: October 25, 2014, 03:51:10 pm »
I paid close attention as to when exactly the indicator turns on, and it seems to be the line

starting modules from /etc/modules. strangely enough, the file is basically empty (all commented out).

these lines flash by as the indicator turns on:
 * Starting device node and kernel event manager[ OK ]
 * Starting load modules from /etc/modules[ OK ]
 * Starting cold plug devices[ OK ]
 * Starting log initial device creation[ OK ]
 * Stopping load modules from /etc/modules[ OK ]
 * Starting configure network device security[ OK ]
 * Starting configure network device[ OK ]
 * Starting configure network device security[ OK ]
 * Starting Mount network filesystems[ OK ]
 * Stopping Mount network filesystems[ OK ]
 * Starting configure network device[ OK ]
 * Starting Bridge socket events into upstart[ OK ]
 * Starting configure network device security[ OK ]
 * Starting configure network device[ OK ]