Re: Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-24 Thread Marcelo Laia

10,916 V looks a bit odd to me.


After your comments, I looking forward about the battery voltage and I
found this:

https://www.linkedin.com/pulse/how-choose-laptop-battery-king-sener/

"Voltage is closely related to the number of cells in the battery -
typically a 10.8V battery has 6 cells and a 14.4V battery has 8 cells."


https://superuser.com/questions/33207/laptop-battery-is-voltage-really-important-to-respect

https://superuser.com/a/406492

"The first stage is adapter which is nearly 5 V higher than the battery
rating voltage to charge it faster to the full. Now the second stage is
the motherboard or processor which typically runs at 5 V and for that
you have voltage regulator inside."

At 98%, the voltage here is:

  battery
present: yes
rechargeable:yes
state:   charging
warning-level:   none
energy:  36,0417 Wh
energy-empty:0 Wh
energy-full: 36,3858 Wh
energy-full-design:  59,94 Wh
energy-rate: 1,8537 W
voltage: 12,734 V
charge-cycles:   N/A
time to full:11,1 minutes
percentage:  99%
capacity:60,7037%
technology:  lithium-ion
icon-name:  'battery-full-charging-symbolic'

I found that this battery I bought in 2019. However, it is pretty good
yet!


--
Marcelo



Re: Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-24 Thread hw
Is it possible that the USB ports do not supply power once the laptop
is running on battery?

Does the NumLock LED of the keyboard go out?


On Thu, 2024-02-22 at 13:49 -0300, Marcelo Laia wrote:
> Dear Debian Users,
> 
> Thank you all for the invaluable assistance provided. Unfortunately, the 
> issue has resurfaced today. I don't believe it's related to the age of the 
> hardware, although my Inspiron 5547-A20 is from 2014, as indicated below:
> 
> Inspiron 5547 01 OCT. 2014
> 
> Some hardware details:
> 
> - BIOS:
>- Vendor: Dell Inc.
>- Version: A13
>- Date: 05/27/2019
> - CPU:
>- Product: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
> - Memory:
>- Size: 16GB
> 
> Today, the battery still had 66% charge when this strange problem occurred. 
> It's worth mentioning that in all these days, between my last post here on 
> the list and today, I always use the battery until it reaches between 20-10%, 
> at which point I plug in the charger and let it charge until it reaches 
> 95-100%.
> 
> I ran the following commands:
> 
> With the power cable plugged into the power grid, i.e., the battery is 
> charging:
> 
> :~$ sudo lsusb -t
> 
> /:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-pci/2p, 480M
>  |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/8p, 480M
>  |__ Port 005: Dev 003, If 0, Class=Wireless, Driver=btusb, 12M
>  |__ Port 005: Dev 003, If 1, Class=Wireless, Driver=btusb, 12M
>  |__ Port 006: Dev 004, 12M
>  |__ Port 007: Dev 005, If 0, Class=Vendor Specific Class, 
> Driver=rtsx_usb, 480M
>  |__ Port 008: Dev 006, If 0, Class=Video, Driver=uvcvideo, 480M
>  |__ Port 008: Dev 006, If 1, Class=Video, Driver=uvcvideo, 480M
> /:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/9p, 480M
>  |__ Port 002: Dev 007, If 0, Class=Human Interface Device, 
> Driver=usbhid, 1.5M
> /:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 5000M
> :~$
> 
> :~$ ls /sys/bus/usb/drivers/usb/
> 1-1  1-1.5  1-1.6  1-1.7  1-1.8  2-2  bind  module  uevent  unbind  usb1  
> usb2  usb3
> :~$ 
> 
> After unplugging the power cable, i.e., the battery is discharging:
> 
> After a few seconds, the screen brightness is set to zero. The mouse remains 
> active, and I can use it for a few more seconds, when it also becomes 
> disabled. From then on, only the touchpad and internal keyboard are 
> functional.
> 
> :~$ sudo lsusb -t
> 
> /:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-pci/2p, 480M
>  |__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/8p, 480M
>  |__ Port 005: Dev 003, If 0, Class=Wireless, Driver=btusb, 12M
>  |__ Port 005: Dev 003, If 1, Class=Wireless, Driver=btusb, 12M
>  |__ Port 006: Dev 004, 12M
>  |__ Port 007: Dev 005, If 0, Class=Vendor Specific Class, 
> Driver=rtsx_usb, 480M
>  |__ Port 008: Dev 006, If 0, Class=Video, Driver=uvcvideo, 480M
>  |__ Port 008: Dev 006, If 1, Class=Video, Driver=uvcvideo, 480M
> /:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/9p, 480M
> /:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 5000M
> :~$ 
> 
> ~$ ls /sys/bus/usb/drivers/usb/
> 1-1  1-1.5  1-1.6  1-1.7  1-1.8  bind  module  uevent  unbind  usb1  usb2  
> usb3
> :~$ 
> 
> :~$ echo '2-2' | sudo tee /sys/bus/usb/drivers/usb/bind 
> 2-2
> tee: /sys/bus/usb/drivers/usb/bind: No device
> :~$ 
> 
> :~$ upower --dump
> Device: /org/freedesktop/UPower/devices/line_power_ACAD
>native-path:  ACAD
>power supply: yes
>updated:  qui 22 fev 2024 13:23:50 (182 seconds ago)
>has history:  no
>has statistics:   no
>line-power
>  warning-level:   none
>  online:  no
>  icon-name:  'ac-adapter-symbolic'
> 
> Device: /org/freedesktop/UPower/devices/battery_BAT1
>native-path:  BAT1
>vendor:   SANYO
>model:DELL WYT3M94Q
>serial:   0038
>power supply: yes
>updated:  qui 22 fev 2024 13:26:31 (21 seconds ago)
>has history:  yes
>has statistics:   yes
>battery
>  present: yes
>  rechargeable:yes
>  state:   discharging
>  warning-level:   none
>  energy:  23,9982 Wh
>  energy-empty:0 Wh
>  energy-full: 36,4857 Wh
>  energy-full-design:  59,94 Wh
>  energy-rate: 30,0588 W
>  voltage: 10,916 V
>  charge-cycles:   N/A
>  time to empty:   47,9 minutes
>  percentage:  65%
>  capacity:60,8704%
>  technology:  lithium-ion
>  icon-name:  'battery-full-symbolic'
>History (charge):
>  1708619191   65,000  discharging
>  1708619161   66,000  discharging
>  1708619101   67,000  discharging
>History (rate):
>  1708619101 

Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-22 Thread David Wright
On Thu 22 Feb 2024 at 13:49:54 (-0300), Marcelo Laia wrote:

> Inspiron 5547 01 OCT. 2014
> 
> Some hardware details:
> 
> - BIOS:
>   - Vendor: Dell Inc.
>   - Version: A13
>   - Date: 05/27/2019
> - CPU:
>   - Product: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
> - Memory:
>   - Size: 16GB

[ … ]

> After unplugging the power cable, i.e., the battery is discharging:
> 
> After a few seconds, the screen brightness is set to zero. The mouse
> remains active, and I can use it for a few more seconds, when it
> also becomes disabled. From then on, only the touchpad and internal
> keyboard are functional.

[ … ]

> Any other suggestions? It seems to me that it's not related to
> power, however, what is the specific list for energy-related issues? 

My advice would be to prepare for a day when you see nothing from
the moment you switch it on.

Here's a log of what happened with my Dell D430 laptop, purchased in
2008 as a stop-gap, acquired by me in 2009. First the battery packs:

  2014-02-12 Large battery started to go bad. Charging light started
  constantly flashing a pattern: four yellows and a longer
  green. Apart from that, everything works ok: the battery stays at
  five lights, and the acpi variables all show sensible
  values. However, the battery discharges much more quickly than it
  should, particularly early on, so some cells probably don't work
  properly.

  2015-03-29 Started to switch itself off when the power cable was
  disconnected. It appears that the battery is not actually connected
  to the computer when this happens.

  2015-03-31 The large battery finally gave up. When the charge button
  is pressed, only LEDS 1, 3 and 5 light up, but flashing. Otherwise,
  dead. Disposed of the large battery in Best Buy's foyer and started
  using the small one.

And the screen:

  2011-10-21 Started to switch itself off unaccountably every so
  often. No freeze, no kernel panic, but just like holding down the
  power switch. It will have been running a while, and usually it
  happens when the machine or lid is moved.

  2017-01-22 After a day or two of slight flickering in brightness,
  the screen blanked out a few times during the day. The machine was
  still running, and so X could be quit and restarted, and rebooted
  too. The screen would come back, but often disappear almost
  immediately, even while the Dell splash screen was being displayed
  at switch-on. It went away entirely the same day.

  2018-06-19 After being depowered for a week, the battery capacity
  had fallen to 2%. However, on AC the screen started working again,
  though it just flickered a little all the time. Took the opportunity
  to demote Internal HDD to below USB and Optical Drive in the BIOS.
  Got about three minutes before it reverted.

  2020-04-16 Started to crash, and eventually failed to boot.
  Obviously difficult to diagnose when there's no display at power-on,
  so scrapped.

If you're wondering why I kept it so long, I could use an external
monitor to display its X server screen, but neither the BIOS nor
the console would work that way, so I had to type blind until I got
into X. With a 30 second countdown, I could operate the Grub screen
blind. I also managed to install buster in text mode by copying what
I typed while installing on another PC at the same time. (I might
have been able to clone jessie into the other partition, but that
would have then required two dist-upgrades.)

Cheers,
David.



Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-22 Thread Charles Curley
On Thu, 22 Feb 2024 13:49:54 -0300
Marcelo Laia  wrote:

> Thank you all for the invaluable assistance provided. Unfortunately,
> the issue has resurfaced today. I don't believe it's related to the
> age of the hardware, although my Inspiron 5547-A20 is from 2014, as
> indicated below:

A stab in the dark:

I take it that you ran the upower --dump command while the battery was
discharging. 10,916 V looks a bit odd to me. What does a dump show when
the battery is fully charged? I wonder if that voltage is too low to
support the laptop.

My two ancient Lenovos (2011 and 2012) are both showing much better
values than that.

The difference between the energy-full and energy-full-design values,
and the capacity both lead me to wonder if it isn't time to buy a new
battery (or maybe a new or refurbished laptop).

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-22 Thread Marcelo Laia

Dear Debian Users,

Thank you all for the invaluable assistance provided. Unfortunately, the issue 
has resurfaced today. I don't believe it's related to the age of the hardware, 
although my Inspiron 5547-A20 is from 2014, as indicated below:

Inspiron 5547 01 OCT. 2014

Some hardware details:

- BIOS:
  - Vendor: Dell Inc.
  - Version: A13
  - Date: 05/27/2019
- CPU:
  - Product: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
- Memory:
  - Size: 16GB

Today, the battery still had 66% charge when this strange problem occurred. 
It's worth mentioning that in all these days, between my last post here on the 
list and today, I always use the battery until it reaches between 20-10%, at 
which point I plug in the charger and let it charge until it reaches 95-100%.

I ran the following commands:

With the power cable plugged into the power grid, i.e., the battery is charging:

:~$ sudo lsusb -t

/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 005: Dev 003, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 005: Dev 003, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 006: Dev 004, 12M
|__ Port 007: Dev 005, If 0, Class=Vendor Specific Class, 
Driver=rtsx_usb, 480M
|__ Port 008: Dev 006, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 008: Dev 006, If 1, Class=Video, Driver=uvcvideo, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/9p, 480M
|__ Port 002: Dev 007, If 0, Class=Human Interface Device, Driver=usbhid, 
1.5M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 5000M
:~$

:~$ ls /sys/bus/usb/drivers/usb/
1-1  1-1.5  1-1.6  1-1.7  1-1.8  2-2  bind  module  uevent  unbind  usb1  usb2  
usb3
:~$ 


After unplugging the power cable, i.e., the battery is discharging:

After a few seconds, the screen brightness is set to zero. The mouse remains 
active, and I can use it for a few more seconds, when it also becomes disabled. 
From then on, only the touchpad and internal keyboard are functional.

:~$ sudo lsusb -t

/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 005: Dev 003, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 005: Dev 003, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 006: Dev 004, 12M
|__ Port 007: Dev 005, If 0, Class=Vendor Specific Class, 
Driver=rtsx_usb, 480M
|__ Port 008: Dev 006, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 008: Dev 006, If 1, Class=Video, Driver=uvcvideo, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/9p, 480M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 5000M
:~$ 


~$ ls /sys/bus/usb/drivers/usb/
1-1  1-1.5  1-1.6  1-1.7  1-1.8  bind  module  uevent  unbind  usb1  usb2  usb3
:~$ 

:~$ echo '2-2' | sudo tee /sys/bus/usb/drivers/usb/bind 
2-2

tee: /sys/bus/usb/drivers/usb/bind: No device
:~$ 


:~$ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:  ACAD
  power supply: yes
  updated:  qui 22 fev 2024 13:23:50 (182 seconds ago)
  has history:  no
  has statistics:   no
  line-power
warning-level:   none
online:  no
icon-name:  'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:  BAT1
  vendor:   SANYO
  model:DELL WYT3M94Q
  serial:   0038
  power supply: yes
  updated:  qui 22 fev 2024 13:26:31 (21 seconds ago)
  has history:  yes
  has statistics:   yes
  battery
present: yes
rechargeable:yes
state:   discharging
warning-level:   none
energy:  23,9982 Wh
energy-empty:0 Wh
energy-full: 36,4857 Wh
energy-full-design:  59,94 Wh
energy-rate: 30,0588 W
voltage: 10,916 V
charge-cycles:   N/A
time to empty:   47,9 minutes
percentage:  65%
capacity:60,8704%
technology:  lithium-ion
icon-name:  'battery-full-symbolic'
  History (charge):
1708619191  65,000  discharging
1708619161  66,000  discharging
1708619101  67,000  discharging
  History (rate):
1708619101  30,059  discharging

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply: yes
  updated:  qui 22 fev 2024 13:26:31 (21 seconds ago)
  has history:  no
  has statistics:   no
  battery
present: yes
state:   discharging
warning-level:   none
energy:  23,9982 Wh
energy-full: 36,4857 Wh
energy-rate: 30,0588 W
charge-cycles:   N/A
time to empty:   47,9 minutes
percentage:  

Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-15 Thread Max Nikulin

On 15/02/2024 12:39, David Wright wrote:


I would go further than tomas, and suggest that the battery might be
suspect, or the charging circuit of course. (None of my three laptops
works without AC power.) How old is it?


Battery health may be estimated from output of

 upower --dump

by comparison energy-full-design, energy-full, and other values.

I still believe it is excessively aggressive power settings in GNOME or 
in firmware (BIOS) setup. Maybe it is result of shooting own foot by 
tools like powertop or tlp. Anyway it is rather wrong settings than 
wrong behavior. There is a chance that the issue is with USB controller 
driver. Likely it is better to ask the same question in a user group 
more specific to power management.




Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-14 Thread David Wright
On Wed 14 Feb 2024 at 20:09:09 (-0300), Marcelo Laia wrote:
> Unfortunately, the issue has worsened. Today, I observed that upon unplugging 
> the power cable, within one or two seconds, the screen dims (brightness is 
> set to zero), and both the external mouse and keyboard (USB) stop working. 
> Even if I try to use the keyboard or mouse, they do not reactivate. Only the 
> laptop's internal touchpad and keyboard continue to function. When I 
> reconnect the power cable, both the external mouse and keyboard resume 
> working automatically. However, I need to manually adjust the screen 
> brightness. I have not installed the usbguard package. Could there be another 
> underlying cause?

I would go further than tomas, and suggest that the battery might be
suspect, or the charging circuit of course. (None of my three laptops
works without AC power.) How old is it?

Cheers,
David.



Re: Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-02-14 Thread Marcelo Laia

Dear Debian community,

Thank you for your insights. Unfortunately, the issue has worsened. Today, I 
observed that upon unplugging the power cable, within one or two seconds, the 
screen dims (brightness is set to zero), and both the external mouse and 
keyboard (USB) stop working. Even if I try to use the keyboard or mouse, they 
do not reactivate. Only the laptop's internal touchpad and keyboard continue to 
function. When I reconnect the power cable, both the external mouse and 
keyboard resume working automatically. However, I need to manually adjust the 
screen brightness. I have not installed the usbguard package. Could there be 
another underlying cause?

Best regards,

--
Marcelo



Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-01-25 Thread Max Nikulin

On 24/01/2024 02:13, Marcelo Laia wrote:


After recently upgrade, my external keyboard and external mouse (both 
USB) stopped working after after the screen brightness automatically 
decreased. This has occurred a few times, and I can only solve it by 
rebooting the laptop.


Were your experimenting with energy saving tools (desktop environment 
GUI, powertop, tlp, etc.)?


jan 23 11:28:43 marcelo dbus-daemon[2019]: [session uid=1000 pid=2019] 
Activating service name='org.gnome.ScreenSaver' requested by ':1.65' 
(uid=1000 pid=2729 comm="/usr/libexec/gsd-usb-protection")
jan 23 11:28:43 marcelo gsd-usb-protect[2729]: Failed to fetch USBGuard 
parameters: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The 
name org.usbguard1 was not provided by any .service files


I have no idea what gsd-usb-protection should do or whether GNOME 
expects installed usbguard, but it might be related.





Re: Issue with USB External Keyboard, External Mouse, and Screen Brightness on Dell Laptop

2024-01-23 Thread tomas
On Tue, Jan 23, 2024 at 04:13:23PM -0300, Marcelo Laia wrote:
> Dear Debian community,
> 
> I am facing an issue with my Dell laptop, running Debian.
> 
> After recently upgrade, my external keyboard and external mouse (both USB)
> stopped working after after the screen brightness automatically decreased.
> This has occurred a few times, and I can only solve it by rebooting the
> laptop.
> 
> Furthermore, I have observed that the issue is also related to the behavior
> of screen brightness, which seems to decrease automatically.

A shot in the dark: does that happen only when running from battery?

Perhaps the laptop is powering down its (internal) USB hub to save
battery charge. In some BIOSes there are knobs to control this.

Cheers
-- 
t


signature.asc
Description: PGP signature