Lenovo X280

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Lenovo X280

Postby MikeEcho » 2018-10-29 17:33

Hi,

I've just bought a brand new Lenovo X280 which is, by the way, a very nice piece of hardware. Almost everything works out-of-the-box (Stretch (non-free) + MATE -- no backports) expect for two things : webcam isn't working properly and physical power off button isn't recognize.

1/ I've configured the system in a way that it should ask me what to do when I press the power button in System/Preferences/Hardware/Power Management/General. But, when I press the this power button, nothing happen. Is there anything to do about that ? I've already installed acpid and acpi packages and had no more luck.

2/ The webcam isn't working properly when connected with VLC (Media/Open Capture Device). The picture I get doesn't seem to have the proper format. It seems shrinked. Is there anything to do about that too ?

Thank you for your time !
Last edited by MikeEcho on 2018-10-29 19:44, edited 1 time in total.
MikeEcho
 
Posts: 17
Joined: 2017-04-16 08:18

Re: Lenovo X280

Postby Head_on_a_Stick » 2018-10-29 17:40

MikeEcho wrote:I've just bought a brand new Lenovo X280 which is, by the way, a very nice piece of hardware. Almost everything works out-of-the-box (Stretch (non-free) + MATE -- no backports)

Really? :o

Have you checked the drivers (`lspci -k`)?

MikeEcho wrote:when I press the this power button, nothing happen

Have you checked the systemd journal (or dmesg) to see if the button press was recognised?

Please post the output of
Code: Select all
systemd-inhibit
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8169
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Lenovo X280

Postby stevepusser » 2018-10-29 18:21

For the incorrect video, this could be a case of the driver not really fully working with Stretch's kernel and Mesa libriaries. If you install inxi, and update the hardware databases with (as sysadmin):

Code: Select all
update-pciids
update-usbids


then run

Code: Select all
inxi -Fxz


as a standard user, what does it report?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10126
Joined: 2009-10-06 05:53

Re: Lenovo X280

Postby MikeEcho » 2018-10-29 19:35

Head_on_a_Stick wrote:
MikeEcho wrote:I've just bought a brand new Lenovo X280 which is, by the way, a very nice piece of hardware. Almost everything works out-of-the-box (Stretch (non-free) + MATE -- no backports)

Really? :o

Have you checked the drivers (`lspci -k`)?

MikeEcho wrote:when I press the this power button, nothing happen

Have you checked the systemd journal (or dmesg) to see if the button press was recognised?

Please post the output of
Code: Select all
systemd-inhibit


Yes, everything works almost out-of-the-box. That was a relief.

Code: Select all
mikael@THINKPAD:~$ lspci -k
00:00.0 Host bridge: Intel Corporation Device 5914 (rev 08)
   Subsystem: Lenovo Device 2256
00:02.0 VGA compatible controller: Intel Corporation Device 5917 (rev 07)
   Subsystem: Lenovo Device 2256
   Kernel driver in use: i915
   Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 08)
   Subsystem: Lenovo Skylake Processor Thermal Subsystem
   Kernel driver in use: proc_thermal
   Kernel modules: processor_thermal_device
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
   Subsystem: Lenovo Skylake Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
   Subsystem: Lenovo Sunrise Point-LP USB 3.0 xHCI Controller
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
   Subsystem: Lenovo Sunrise Point-LP Thermal subsystem
   Kernel driver in use: intel_pch_thermal
   Kernel modules: intel_pch_thermal
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
   Subsystem: Lenovo Sunrise Point-LP CSME HECI
   Kernel driver in use: mei_me
   Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
   Subsystem: Lenovo Sunrise Point-LP SATA Controller [AHCI mode]
   Kernel driver in use: ahci
   Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation Device 9d12 (rev f1)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation Device 9d4e (rev 21)
   Subsystem: Lenovo Device 2256
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
   Subsystem: Lenovo Sunrise Point-LP PMC
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
   Subsystem: Lenovo Device 2256
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel, snd_soc_skl
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
   Subsystem: Lenovo Sunrise Point-LP SMBus
   Kernel driver in use: i801_smbus
   Kernel modules: i2c_i801
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-V (rev 21)
   Subsystem: Lenovo Ethernet Connection (4) I219-V
   Kernel driver in use: e1000e
   Kernel modules: e1000e
02:00.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
03:00.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
03:01.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
03:02.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
04:00.0 System peripheral: Intel Corporation JHL6240 Thunderbolt 3 NHI (Low Power) [Alpine Ridge LP 2016] (rev 01)
   Subsystem: Device 2222:1111
3a:00.0 USB controller: Intel Corporation Device 15c1 (rev 01)
   Subsystem: Device 2222:1111
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
3b:00.0 Network controller: Intel Corporation Device 24fd (rev 78)
   Subsystem: Intel Corporation Device 0010
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi
mikael@THINKPAD:~$ systemd-inhibit
     Who: ModemManager (UID 0/root, PID 590/ModemManager)
    What: sleep
     Why: ModemManager needs to reset devices
    Mode: delay

     Who: NetworkManager (UID 0/root, PID 584/NetworkManager)
    What: sleep
     Why: NetworkManager needs to turn off networks
    Mode: delay

     Who: mikael (UID 1000/mikael, PID 1204/mate-power-mana)
    What: handle-power-key:handle-suspend-key:handle-lid-switch
     Why: Mate power manager handles these events
    Mode: block

3 inhibitors listed.


Thank for your help.
MikeEcho
 
Posts: 17
Joined: 2017-04-16 08:18

Re: Lenovo X280

Postby MikeEcho » 2018-10-29 19:38

stevepusser wrote:For the incorrect video, this could be a case of the driver not really fully working with Stretch's kernel and Mesa libriaries. If you install inxi, and update the hardware databases with (as sysadmin):

Code: Select all
update-pciids
update-usbids


then run

Code: Select all
inxi -Fxz


as a standard user, what does it report?


Thank for your help too but still not working properly ...

mikael@THINKPAD:~$ inxi -Fxz
System: Host: THINKPAD Kernel: 4.9.0-8-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: MATE 1.16.2 (Gtk 3.22.11-1)
Distro: Debian GNU/Linux 9 (stretch)
Machine: Device: laptop System: LENOVO product: 20KFCTO1WW v: ThinkPad X280
Mobo: LENOVO model: 20KFCTO1WW v: SDK0J40709 WIN
UEFI: LENOVO v: N20ET36W (1.21 ) date: 09/06/2018
Battery BAT0: charge: 38.1 Wh 78.7% condition: 48.4/48.1 Wh (101%)
model: Celxpert 01AV472 status: Discharging
CPU: Quad core Intel Core i5-8250U (-HT-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 14400
clock speeds: max: 3400 MHz 1: 694 MHz 2: 695 MHz 3: 755 MHz
4: 780 MHz 5: 725 MHz 6: 638 MHz 7: 691 MHz 8: 684 MHz
Graphics: Card: Intel UHD Graphics 620 bus-ID: 00:02.0
Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.00hz
GLX Renderer: Mesa DRI Intel Kabylake GT1.5
GLX Version: 3.0 Mesa 13.0.6 Direct Rendering: Yes
Audio: Card Intel Sunrise Point-LP HD Audio
driver: snd_hda_intel bus-ID: 00:1f.3
Sound: Advanced Linux Sound Architecture v: k4.9.0-8-amd64
Network: Card-1: Intel Ethernet Connection (4) I219-V
driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6
IF: enp0s31f6 state: down mac: <filter>
Card-2: Intel Wireless 8265 / 8275 driver: iwlwifi bus-ID: 3b:00.0
IF: wlp59s0 state: up mac: <filter>
Drives: HDD Total Size: 128.0GB (15.4% used)
ID-1: /dev/sda model: SanDisk_SD9SN8W1 size: 128.0GB
Partition: ID-1: / size: 109G used: 11G (11%) fs: ext4 dev: /dev/dm-1
ID-2: /boot size: 237M used: 71M (32%) fs: ext2 dev: /dev/sda2
ID-3: swap-1 size: 8.48GB used: 0.00GB (0%) fs: swap dev: /dev/dm-2
Sensors: System Temperatures: cpu: 39.5C mobo: N/A
Fan Speeds (in rpm): cpu: 0
Info: Processes: 222 Uptime: 9 min Memory: 558.1/7882.5MB
Init: systemd runlevel: 5 Gcc sys: 6.3.0
Client: Shell (bash 4.4.121) inxi: 2.3.5
MikeEcho
 
Posts: 17
Joined: 2017-04-16 08:18

Re: Lenovo X280

Postby MikeEcho » 2018-10-29 19:46

This guy (on UBUNTU) doesn't seem to have any kind of these issues.

https://orange.kaosy.org/2018/07/22/rev ... 04-bionic/
MikeEcho
 
Posts: 17
Joined: 2017-04-16 08:18

Re: Lenovo X280

Postby Head_on_a_Stick » 2018-10-29 19:52

MikeEcho wrote:
Code: Select all
     Who: mikael (UID 1000/mikael, PID 1204/mate-power-mana)
    What: handle-power-key:handle-suspend-key:handle-lid-switch
     Why: Mate power manager handles these events
    Mode: block

^ MATE should be handling the power button, I presume you have used the settings in that desktop?

Use systemd's journal to investigate more, this will show any new messages added:
Code: Select all
journalctl -fx

^ Run that command in a terminal and then press the power button: do any new messages appear?
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8169
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Lenovo X280

Postby MikeEcho » 2018-10-29 20:50

Head_on_a_Stick wrote:
MikeEcho wrote:
Code: Select all
     Who: mikael (UID 1000/mikael, PID 1204/mate-power-mana)
    What: handle-power-key:handle-suspend-key:handle-lid-switch
     Why: Mate power manager handles these events
    Mode: block

^ MATE should be handling the power button, I presume you have used the settings in that desktop?


I'm sorry but I don't understand what you mean by "I presume you have used the settings in that desktop".

But suspend actually works when I close the lid and that congruent with the setting I choose in Preferences/Power Management.

Head_on_a_Stick wrote:Use systemd's journal to investigate more, this will show any new messages added:
Code: Select all
journalctl -fx

^ Run that command in a terminal and then press the power button: do any new messages appear?


Nope. Nothing shows up.

But the command works because when I increase or decrease the brightness something appears.
MikeEcho
 
Posts: 17
Joined: 2017-04-16 08:18

Re: Lenovo X280

Postby MikeEcho » 2018-10-29 21:03

MikeEcho wrote:
Head_on_a_Stick wrote:
MikeEcho wrote:
Code: Select all
     Who: mikael (UID 1000/mikael, PID 1204/mate-power-mana)
    What: handle-power-key:handle-suspend-key:handle-lid-switch
     Why: Mate power manager handles these events
    Mode: block

^ MATE should be handling the power button, I presume you have used the settings in that desktop?


I'm sorry but I don't understand what you mean by "I presume you have used the settings in that desktop".

But suspend actually works when I close the lid and that congruent with the setting I choose in Preferences/Power Management.

Head_on_a_Stick wrote:Use systemd's journal to investigate more, this will show any new messages added:
Code: Select all
journalctl -fx

^ Run that command in a terminal and then press the power button: do any new messages appear?


Nope. Nothing shows up.

But the command works because when I increase or decrease the brightness something appears.


This problem is solved. Thank to this : https://unix.stackexchange.com/question ... r-anything

Actually, I have to maintain the push for two seconds to get the menu. A "hit" isn't sufficient, it doesn't work like my i3552 which needed only a "hit" ... But thank you very much for your help, you pointed the way !
MikeEcho
 
Posts: 17
Joined: 2017-04-16 08:18

Re: Lenovo X280

Postby stevepusser » 2018-10-30 19:08

Well, you do have 2018's Intel 8th-generation Coffee Lake hardware. I think things would work better overall with a 2018 4.18 kernel from stretch-backports instead of the 2016 4.9 kernel that you're running now---it hopefully would support your particular laptop's ACPI better, including the power button and hotkey combos. The newer kernel is also supposed to extend your battery life with Intel CPUs, sometimes quite noticeably.

Intel 6th-generation and above hardware also requires firmware-misc-nonfree to really work correctly: https://packages.debian.org/stretch-bac ... sc-nonfree

Firmware is backwards compatible, so you can use the backports version safely with any older kernel.

The above instructions generally apply to just about all machines with newly introduced hardware, not just yours.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10126
Joined: 2009-10-06 05:53

Re: Lenovo X280

Postby MikeEcho » 2018-11-06 12:39

stevepusser wrote:Well, you do have 2018's Intel 8th-generation Coffee Lake hardware. I think things would work better overall with a 2018 4.18 kernel from stretch-backports instead of the 2016 4.9 kernel that you're running now---it hopefully would support your particular laptop's ACPI better, including the power button and hotkey combos. The newer kernel is also supposed to extend your battery life with Intel CPUs, sometimes quite noticeably.

Intel 6th-generation and above hardware also requires firmware-misc-nonfree to really work correctly: https://packages.debian.org/stretch-bac ... sc-nonfree

Firmware is backwards compatible, so you can use the backports version safely with any older kernel.

The above instructions generally apply to just about all machines with newly introduced hardware, not just yours.


Thank you for this answer. I've just upgrade my kernel to 4.18.

Nevertheless, my webcam isn't working better : the picture I get is still shrinked.
MikeEcho
 
Posts: 17
Joined: 2017-04-16 08:18

Re: Lenovo X280

Postby stevepusser » 2018-11-06 17:36

How about the webcam video in guvcview?
Does other video in VLC have the same problem?
What does "apt policy firmware-misc-nonfree" report?
Try setting the video output in VLC to something other than automatic or default, though this is only a halfway fix. Sometimes it can be fixed by using the "intel" driver instead of modesetting, or updating to the Mesa libraries in stretch-backports. (if there's no xserver-xorg-video-intel driver in backports, maybe I can do one in the OBS)
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Quod Libet 4.2.0, Pale Moon 28.2.0, wine-staging 3.20, GIMP 2.10.8, Liquorix kernel 4.18-22, Midori 6.0
User avatar
stevepusser
 
Posts: 10126
Joined: 2009-10-06 05:53


Return to Hardware

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable