[Bug 1915264] Re: ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

2021-03-03 Thread Kai-Heng Feng
** Changed in: linux (Ubuntu)
   Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915264

Title:
  ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915264/+subscriptions

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

[Bug 1915264] Re: ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

2021-02-26 Thread Hrishikesh Kadam
After upgrading to 5.8.0-43-generic, ALS doesn't wake up the suspended
Ubuntu.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915264

Title:
  ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915264/+subscriptions

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

[Bug 1915264] Re: ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

2021-02-15 Thread Hrishikesh Kadam
@Alex Hung (alexhung) Thank you for the temporary tweak.
After disabling XHC as wakeup, ALS is not waking up the suspended Ubuntu.
But, there should be some fine way to stop only ALS from wakeup rather than the 
XHC (USB 3.1 controller) whole.
I think this seems to be a bug.

Fo the moment I did this -

1. Create a script file wherever you wish. Ex: `~/Scripts/disable-
devices-as-wakeup.sh`.

```bash
#!/bin/bash

declare -a devices=("XHC") # <-- Add your entries here
for device in "${devices[@]}"; do
if grep -qw ^$device.*enabled /proc/acpi/wakeup; then
sudo sh -c "echo $device > /proc/acpi/wakeup"
fi
done
```

2. Test it by executing it from the terminal.

3. If everything is okay then let's make a service.

`touch ~/Scripts/disable-devices-as-wakeup.service`

`chmod u+x ~/Scripts/disable-devices-as-wakeup.service`

~/Scripts/disable-devices-as-wakeup.service -

```bash
[Unit]
Description=Disable devices as wakeup

[Service]
ExecStart=/home/username/Scripts/disable-devices-as-wakeup.sh
Type=oneshot

[Install]
WantedBy=multi-user.target
```

4. Copy paste or move the service to `/etc/systemd/system/`.

`sudo cp ~/Scripts/disable-devices-as-wakeup.service
/etc/systemd/system/`

5. Enable the service.

`systemctl enable disable-devices-as-wakeup.service`

6. Restart the OS and check the status.

`systemctl status disable-devices-as-wakeup.service`

Detailed explanation found on https://access.redhat.com/documentation
/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/chap-
managing_services_with_systemd

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915264

Title:
  ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915264/+subscriptions

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

[Bug 1915264] Re: ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

2021-02-12 Thread Alex Hung
You can try to disable wake-up sources, if this ALS is in the list.

# get the full list
$ cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
PEG0  S4*enabled   pci::00:01.0
PEGP  S4*disabled  pci::01:00.0
PEG1  S4*disabled
...
GLAN  S4*enabled   pci::00:1f.6
XHC   S3*enabled   pci::00:14.0
..

# disable a specific one, ex. USB3 (XHC)
$ echo XHC | sudo tee /proc/acpi/wakeup

# check it is disabled 
$ cat /proc/acpi/wakeup

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915264

Title:
  ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915264/+subscriptions

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

[Bug 1915264] Re: ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

2021-02-10 Thread Hrishikesh Kadam
apport information

** Tags added: apport-collected focal wayland-session

** Description changed:

  After suspending the Laptop, ALS (Ambient Light Sensor) is waking it up.
  
  System Information -
  Product Name: HP ZBook Studio x360 G5
  SKU Number: 5LA90PA#ACJ
  
  OS Information -
  > uname -a
  Linux *** 5.8.0-41-generic #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 
2021 x86_64 x86_64 x86_64 GNU/Linux
  > lsb_release -rd
  Description:  Ubuntu 20.04.2 LTS
  Release:  20.04
  
  I am able to disable ALS as follow -
  
  > sudo modprobe -rv hid_sensor_als
  modprobe: FATAL: Module hid_sensor_als is in use.
  
  So, I blaclisted hid-sensor-als by appending following text in 
/etc/modprobe.d/blacklist.conf -
  # ALS
  blacklist hid-sensor-als
  
  Restarted the system and checked if the module is really blacklisted using -
  > lsmod | grep hid_sensor_als
  
  But the issue still persists that ALS wakes up the suspended Ubuntu.
  Also, BIOS doesn't have the option to disable ALS.
+ --- 
+ ProblemType: Bug
+ ApportVersion: 2.20.11-0ubuntu27.16
+ Architecture: amd64
+ AudioDevicesInUse:
+  USERPID ACCESS COMMAND
+  /dev/snd/controlC0:  hrk1599 F pulseaudio
+ CasperMD5CheckResult: skip
+ CurrentDesktop: ubuntu:GNOME
+ DistroRelease: Ubuntu 20.04
+ InstallationDate: Installed on 2021-02-05 (5 days ago)
+ InstallationMedia: Ubuntu 20.04.2 LTS "Focal Fossa" - Release amd64 (20210204)
+ MachineType: HP HP ZBook Studio x360 G5
+ Package: linux (not installed)
+ ProcFB: 0 i915drmfb
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-41-generic 
root=UUID=f9e396bc-107a-4b6f-80f6-8b950207e827 ro quiet splash vt.handoff=7
+ ProcVersionSignature: Ubuntu 5.8.0-41.46~20.04.1-generic 5.8.18
+ RelatedPackageVersions:
+  linux-restricted-modules-5.8.0-41-generic N/A
+  linux-backports-modules-5.8.0-41-generic  N/A
+  linux-firmware1.187.9
+ Tags:  wayland-session focal
+ Uname: Linux 5.8.0-41-generic x86_64
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
+ _MarkForUpload: True
+ dmi.bios.date: 07/29/2020
+ dmi.bios.release: 12.0
+ dmi.bios.vendor: HP
+ dmi.bios.version: Q71 Ver. 01.12.00
+ dmi.board.name: 844F
+ dmi.board.vendor: HP
+ dmi.board.version: KBC Version 16.48.00
+ dmi.chassis.asset.tag: 5CD849CC7L
+ dmi.chassis.type: 31
+ dmi.chassis.vendor: HP
+ dmi.ec.firmware.release: 22.72
+ dmi.modalias: 
dmi:bvnHP:bvrQ71Ver.01.12.00:bd07/29/2020:br12.0:efr22.72:svnHP:pnHPZBookStudiox360G5:pvr:rvnHP:rn844F:rvrKBCVersion16.48.00:cvnHP:ct31:cvr:
+ dmi.product.family: 103C_5336AN HP ZBook Studio x360
+ dmi.product.name: HP ZBook Studio x360 G5
+ dmi.product.sku: 5LA90PA#ACJ
+ dmi.sys.vendor: HP

** Attachment added: "AlsaInfo.txt"
   
https://bugs.launchpad.net/bugs/1915264/+attachment/5462318/+files/AlsaInfo.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915264

Title:
  ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915264/+subscriptions

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

[Bug 1915264] Re: ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

2021-02-10 Thread Hrishikesh Kadam
Add linux package

** Package changed: ubuntu => linux (Ubuntu)

** Tags added: suspend-resume

** Description changed:

  After suspending the Laptop, ALS (Ambient Light Sensor) is waking it up.
  
- System Information - 
+ System Information -
  Product Name: HP ZBook Studio x360 G5
  SKU Number: 5LA90PA#ACJ
  
- OS Information - 
+ OS Information -
  > uname -a
  Linux *** 5.8.0-41-generic #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 
2021 x86_64 x86_64 x86_64 GNU/Linux
  > lsb_release -rd
  Description:  Ubuntu 20.04.2 LTS
  Release:  20.04
  
  I am able to disable ALS as follow -
  
  > sudo modprobe -rv hid_sensor_als
  modprobe: FATAL: Module hid_sensor_als is in use.
  
  So, I blaclisted hid-sensor-als by appending following text in 
/etc/modprobe.d/blacklist.conf -
  # ALS
  blacklist hid-sensor-als
  
  Restarted the system and checked if the module is really blacklisted using -
  > lsmod | grep hid_sensor_als
  
  But the issue still persists that ALS wakes up the suspended Ubuntu.
  Also, BIOS doesn't have the option to disable ALS.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915264

Title:
  ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1915264/+subscriptions

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

[Bug 1915264] Re: ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

2021-02-10 Thread Ubuntu Foundations Team Bug Bot
Thank you for taking the time to report this bug and helping to make
Ubuntu better.  It seems that your bug report is not filed about a
specific source package though, rather it is just filed against Ubuntu
in general.  It is important that bug reports be filed about source
packages so that people interested in the package can find the bugs
about it.  You can find some hints about determining what package your
bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage.
You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit
https://bugs.launchpad.net/ubuntu/+bug/1915264/+editstatus and add the
package name in the text box next to the word Package.

[This is an automated message.  I apologize if it reached you
inappropriately; please just reply to this message indicating so.]

** Tags added: bot-comment

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915264

Title:
  ALS (Ambient Light Sensor) wakes up the suspended Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1915264/+subscriptions

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