[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-04 Thread Shih-Yuan Lee
$ grep -r . /sys/class/power_supply/*hid*
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/type:Battery  

   
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/control:auto
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/async:disabled
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/runtime_enabled:disabled
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/runtime_active_kids:0
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/runtime_active_time:0
grep: 
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/autosuspend_delay_ms:
 Input/output error
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/runtime_status:unsupported
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/runtime_usage:0
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/power/runtime_suspended_time:0
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/scope:Device
grep: /sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/capacity: 
Input/output error
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/online:1
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/status:Discharging
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/model_name:“$4”的鍵盤
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery/present:1
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/type:Battery
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/control:auto
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/async:disabled
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/runtime_enabled:disabled
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/runtime_active_kids:0
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/runtime_active_time:0
grep: 
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/autosuspend_delay_ms:
 Input/output error
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/runtime_status:unsupported
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/runtime_usage:0
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/power/runtime_suspended_time:0
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/scope:Device
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/capacity:61
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/online:1
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/status:Discharging
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/uevent:POWER_SUPPLY_NAME=hid-28:CF:DA:BB:74:1B-battery
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/uevent:POWER_SUPPLY_ONLINE=1
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/uevent:POWER_SUPPLY_CAPACITY=61
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/uevent:POWER_SUPPLY_MODEL_NAME=“$4”的滑鼠
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/uevent:POWER_SUPPLY_SCOPE=Device
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/model_name:“$4”的滑鼠
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery/present:1

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread Martin Pitt
** Summary changed:

- System reads Apple Magic Mouse (BT) as a Battery
+ System reads bluetooth input devices as a Battery

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread Martin Pitt
For developing a test case for this it would be really helpful if you
could copypaste the output of this command:

  grep -r . /sys/class/power_supply/*hid*

Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread Shih-Yuan Lee
`grep -r . /sys/class/power_supply/*hid*` seems to run forever.
Is there other command that can run sooner?

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread Martin Pitt
Hm, it should take no time at all, so it seems trying to read a
particular attribute triggers a kernel bug. Could you start with

ls -lR /sys/class/power_supply/*hid* ?

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread hshan
Here's mine; (Problem with my bluetooth keyboard)

ls -lR /sys/class/power_supply/*hid* 
lrwxrwxrwx 1 root root 0 Sep  3 06:50 
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery - 
../../devices/pci:00/:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/bluetooth/hci0/hci0:11/0005:046D:B309.0004/power_supply/hid-00:1f:20:38:cc:30-battery


grep -r . /sys/class/power_supply/*hid*
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/type:Battery
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/power/control:auto
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/power/runtime_active_time:0
grep: 
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/power/autosuspend_delay_ms:
 Input/output error
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/power/runtime_status:unsupported
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/power/runtime_suspended_time:0
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/scope:Device
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/capacity:31
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/online:1
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/status:Discharging
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/uevent:POWER_SUPPLY_NAME=hid-00:1f:20:38:cc:30-battery
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/uevent:POWER_SUPPLY_PRESENT=1
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/uevent:POWER_SUPPLY_ONLINE=1
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/uevent:POWER_SUPPLY_CAPACITY=31
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/uevent:POWER_SUPPLY_MODEL_NAME=Logitech
 diNovo Edge
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/uevent:POWER_SUPPLY_STATUS=Discharging
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/uevent:POWER_SUPPLY_SCOPE=Device
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/model_name:Logitech 
diNovo Edge
/sys/class/power_supply/hid-00:1f:20:38:cc:30-battery/present:1

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread Shih-Yuan Lee
ls -lR /sys/class/power_supply/*hid*
lrwxrwxrwx 1 root root 0  Sep  4 13:32 
/sys/class/power_supply/hid-10:9A:DD:96:DA:0D-battery - 
../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:11/0005:05AC:0239.0003/power_supply/hid-10:9A:DD:96:DA:0D-battery
lrwxrwxrwx 1 root root 0  Sep  4 13:32 
/sys/class/power_supply/hid-28:CF:DA:BB:74:1B-battery - 
../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:13/0005:05AC:030D.0004/power_supply/hid-28:CF:DA:BB:74:1B-battery

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread Shih-Yuan Lee
$ ls -lR 
/sys/class/power_supply/../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:11/0005:05AC:0239.0003/power_supply/hid-10:9A:DD:96:DA:0D-battery
/sys/class/power_supply/../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:11/0005:05AC:0239.0003/power_supply/hid-10:9A:DD:96:DA:0D-battery:
total 0
-r--r--r-- 1 root root 4096 Sep  4 13:38 capacity
lrwxrwxrwx 1 root root0 Sep  4 13:32 device - ../../../0005:05AC:0239.0003
-r--r--r-- 1 root root 4096 Sep  4 13:38 model_name
-r--r--r-- 1 root root 4096 Sep  4 13:38 online
drwxr-xr-x 2 root root0 Sep  4 13:32 power
lrwxrwxrwx 1 root root0 Sep  4 13:38 powers - ../../../0005:05AC:0239.0003
-r--r--r-- 1 root root 4096 Sep  4 13:38 present
-r--r--r-- 1 root root 4096 Sep  4 13:32 scope
-r--r--r-- 1 root root 4096 Sep  4 13:38 status
lrwxrwxrwx 1 root root0 Sep  4 13:38 subsystem - 
../../../../../../../../../../../../class/power_supply
-r--r--r-- 1 root root 4096 Sep  4 13:32 type
-rw-r--r-- 1 root root 4096 Sep  4 13:38 uevent

/sys/class/power_supply/../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:11/0005:05AC:0239.0003/power_supply/hid-10:9A:DD:96:DA:0D-battery/power:
total 0
-rw-r--r-- 1 root root 4096 Sep  4 13:32 async
-rw-r--r-- 1 root root 4096 Sep  4 13:32 autosuspend_delay_ms
-rw-r--r-- 1 root root 4096 Sep  4 13:32 control
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_active_kids
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_active_time
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_enabled
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_status
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_suspended_time
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_usage

$ ls -lR 
/sys/class/power_supply/../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:13/0005:05AC:030D.0004/power_supply/hid-28:CF:DA:BB:74:1B-battery
/sys/class/power_supply/../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:13/0005:05AC:030D.0004/power_supply/hid-28:CF:DA:BB:74:1B-battery:
total 0
-r--r--r-- 1 root root 4096 Sep  4 13:32 capacity
lrwxrwxrwx 1 root root0 Sep  4 13:32 device - ../../../0005:05AC:030D.0004
-r--r--r-- 1 root root 4096 Sep  4 13:38 model_name
-r--r--r-- 1 root root 4096 Sep  4 13:38 online
drwxr-xr-x 2 root root0 Sep  4 13:32 power
lrwxrwxrwx 1 root root0 Sep  4 13:38 powers - ../../../0005:05AC:030D.0004
-r--r--r-- 1 root root 4096 Sep  4 13:38 present
-r--r--r-- 1 root root 4096 Sep  4 13:32 scope
-r--r--r-- 1 root root 4096 Sep  4 13:38 status
lrwxrwxrwx 1 root root0 Sep  4 13:32 subsystem - 
../../../../../../../../../../../../class/power_supply
-r--r--r-- 1 root root 4096 Sep  4 13:32 type
-rw-r--r-- 1 root root 4096 Sep  4 13:38 uevent

/sys/class/power_supply/../../devices/pci:00/:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:13/0005:05AC:030D.0004/power_supply/hid-28:CF:DA:BB:74:1B-battery/power:
total 0
-rw-r--r-- 1 root root 4096 Sep  4 13:32 async
-rw-r--r-- 1 root root 4096 Sep  4 13:32 autosuspend_delay_ms
-rw-r--r-- 1 root root 4096 Sep  4 13:32 control
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_active_kids
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_active_time
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_enabled
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_status
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_suspended_time
-r--r--r-- 1 root root 4096 Sep  4 13:32 runtime_usage

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 1153488] Re: System reads bluetooth input devices as a Battery

2013-09-03 Thread Shih-Yuan Lee
@pitti,

I can run `grep -r . /sys/class/power_supply/*hid*` in Ubuntu 13.04 without any 
problem.
But when I run it in Ubuntu 12.04, it shows some messages like grep: warning: 
...: recursive directory loop.

It seems to be another bug of grep in Ubuntu 12.04. :P

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1153488

Title:
  System reads bluetooth input devices as a Battery

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs