Cannot read /sys/devices/platform/hp-wmi/tablet

Bug #1860940 reported by Andras Muranyi
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
You-Sheng Yang
Bionic
Invalid
Undecided
You-Sheng Yang
Disco
Won't Fix
Undecided
Unassigned
Eoan
Invalid
Undecided
You-Sheng Yang
linux-oem (Ubuntu)
Invalid
Undecided
Unassigned
Bionic
Invalid
Undecided
You-Sheng Yang
Disco
Won't Fix
Undecided
Unassigned
Eoan
Invalid
Undecided
Unassigned
linux-oem-osp1 (Ubuntu)
Invalid
Undecided
Unassigned
Bionic
Fix Released
Undecided
You-Sheng Yang
Disco
Won't Fix
Undecided
Unassigned
Eoan
Invalid
Undecided
Unassigned

Bug Description

[SRU Justification]

[Impact]
On Hewlett-Packard x360 310 G2 convertible laptop,
/sys/devices/platform/hp-wmi/tablet cannot report its current mode:

  # cat /sys/devices/platform/hp-wmi/tablet
  cat: /sys/devices/platform/hp-wmi/tablet: Invalid argument

[Fix]
Commit 133b2acee387 ("platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY
128 bytes") to be cherry-picked to kernels <= v5.4.6.

[Test Case]
Just run `cat /sys/devices/platform/hp-wmi/tablet`.

[Regression Potential]
Low. This affects only HP systems with such buffer length check that
should be fixed.

========== original bug description ==========

# cat /sys/devices/platform/hp-wmi/tablet
cat: /sys/devices/platform/hp-wmi/tablet: Invalid argument

Ubuntu 18.04.3 LTS

This is on a Hewlett-Packard x360 310 G2 convertible laptop.
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: muranyia 1507 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2020-01-19 (7 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
MachineType: Hewlett-Packard HP x360 310 G2 PC
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-26-generic root=UUID=b548b7bb-ecdb-473a-aa36-112da338bff6 ro quiet splash vt.handoff=1
ProcVersionSignature: Ubuntu 5.3.0-26.28~18.04.1-generic 5.3.13
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-26-generic N/A
 linux-backports-modules-5.3.0-26-generic N/A
 linux-firmware 1.173.14
Tags: bionic
Uname: Linux 5.3.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 11/12/2019
dmi.bios.vendor: Insyde
dmi.bios.version: F.65
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 8074
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 66.40
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 31
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.65:bd11/12/2019:svnHewlett-Packard:pnHPx360310G2PC:pvrType1ProductConfigId:rvnHewlett-Packard:rn8074:rvr66.40:cvnHewlett-Packard:ct31:cvrChassisVersion:
dmi.product.family: 103C_5336AN G=N L=SMB B=HP S=310
dmi.product.name: HP x360 310 G2 PC
dmi.product.sku: M9T30ES#ABH
dmi.product.version: Type1ProductConfigId
dmi.sys.vendor: Hewlett-Packard

affects: onboard (Ubuntu) → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1860940

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Andras Muranyi (muranyia) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected bionic
description: updated
Revision history for this message
Andras Muranyi (muranyia) wrote : CRDA.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : IwConfig.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : Lspci.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : Lsusb.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : ProcEnviron.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : ProcModules.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : PulseList.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : RfKill.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : UdevDb.txt

apport information

Revision history for this message
Andras Muranyi (muranyia) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
You-Sheng Yang (vicamo) wrote :

[ 6.411465] hp_wmi: query 0xd returned error 0x5

Where 0xd=HPWMI_FEATURE2_QUERY, and 0x5=HPWMI_RET_INVALID_PARAMETERS. This has been resolved in https://bugzilla.redhat.com/show_bug.cgi?id=1520703 by upstream commit 133b2acee387 ("platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes").

Changed in linux (Ubuntu Focal):
status: Confirmed → In Progress
assignee: nobody → You-Sheng Yang (vicamo)
You-Sheng Yang (vicamo)
no longer affects: linux (Ubuntu Focal)
Changed in linux (Ubuntu Eoan):
status: New → In Progress
Revision history for this message
You-Sheng Yang (vicamo) wrote :
Revision history for this message
You-Sheng Yang (vicamo) wrote :
description: updated
Changed in linux (Ubuntu Disco):
status: New → Won't Fix
Changed in linux-oem (Ubuntu Disco):
status: New → Won't Fix
Changed in linux-oem-osp1 (Ubuntu Disco):
status: New → Won't Fix
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Mark WONTFIX for Disco as it's to be EOL soon.

Changed in linux (Ubuntu Bionic):
assignee: nobody → You-Sheng Yang (vicamo)
status: New → In Progress
Changed in linux (Ubuntu Eoan):
assignee: nobody → You-Sheng Yang (vicamo)
Changed in linux-oem (Ubuntu Bionic):
assignee: nobody → You-Sheng Yang (vicamo)
status: New → In Progress
Changed in linux-oem-osp1 (Ubuntu Bionic):
assignee: nobody → You-Sheng Yang (vicamo)
status: New → In Progress
Revision history for this message
Andras Muranyi (muranyia) wrote :

Thanks for the rapid fix. Can't test the PPA as I'm on 5.3.0-26-generic in Bionic for which it has no upgrade candidate.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Just add that PPA and update its series to bionic and run apt update again.

Revision history for this message
Andras Muranyi (muranyia) wrote :

The PPA is added and its series is bionic. I have 5.3.0-26-generic installed, the PPA offers 4.15.0-76.86+lp1860940 for bionic and 5.3.0-29.31+lp1860940 for eoan, what am I missing?

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Errr, sorry, I mean update its series to eoan, so that you may install 5.3.0-29.31+lp1860940 for eoan on Bionic.

Revision history for this message
Andras Muranyi (muranyia) wrote :

I think I have added the PPA as you told me but the upgrade is not pulled.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Please dump the content of `/etc/apt/sources.list.d/vicamo*.list` and output of `apt policy linux-image-unsigned-5.3.0-29-generic`.

Timo Aaltonen (tjaalton)
Changed in linux-oem-osp1 (Ubuntu Bionic):
status: In Progress → Fix Committed
Revision history for this message
Andras Muranyi (muranyia) wrote :

$ cat /etc/apt/sources.list.d/vicamo*.list
deb http://ppa.launchpad.net/vicamo/ppa-1860940/ubuntu eoan main
# deb-src http://ppa.launchpad.net/vicamo/ppa-1860940/ubuntu eoan main
$ apt policy linux-image-unsigned-5.3.0-29-generic
linux-image-unsigned-5.3.0-29-generic:
  Installed: (none)
  Candidate: 5.3.0-29.31+lp1860940
  Version table:
     5.3.0-29.31+lp1860940 500
        500 http://ppa.launchpad.net/vicamo/ppa-1860940/ubuntu eoan/main amd64 Packages
$ uname -a
Linux two 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ sudo apt upgrade
[sudo] password for muranyia:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-oem (Ubuntu Eoan):
status: New → Confirmed
Changed in linux-oem (Ubuntu):
status: New → Confirmed
Changed in linux-oem-osp1 (Ubuntu Eoan):
status: New → Confirmed
Changed in linux-oem-osp1 (Ubuntu):
status: New → Confirmed
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Already in stable patches

Changed in linux-oem (Ubuntu Bionic):
status: In Progress → Invalid
Changed in linux (Ubuntu Bionic):
status: In Progress → Invalid
Changed in linux (Ubuntu Eoan):
status: In Progress → Invalid
Changed in linux (Ubuntu):
status: In Progress → Invalid
Changed in linux-oem-osp1 (Ubuntu Eoan):
status: Confirmed → Invalid
Changed in linux-oem (Ubuntu Eoan):
status: Confirmed → Invalid
Changed in linux-oem-osp1 (Ubuntu):
status: Confirmed → Invalid
Changed in linux-oem (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Included as stable patch from korg-stable since linux-oem-osp1 5.0.0-1038.43.

Changed in linux-oem-osp1 (Ubuntu Bionic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.