Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Lenovo X280
Lenovo X280
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 !
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.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Lenovo X280
Really?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)
Have you checked the drivers (`lspci -k`)?
Have you checked the systemd journal (or dmesg) to see if the button press was recognised?MikeEcho wrote:when I press the this power button, nothing happen
Please post the output of
Code: Select all
systemd-inhibit
deadbang
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: Lenovo X280
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):
then run
as a standard user, what does it report?
Code: Select all
update-pciids
update-usbids
Code: Select all
inxi -Fxz
as a standard user, what does it report?
MX Linux packager and developer
Re: Lenovo X280
Yes, everything works almost out-of-the-box. That was a relief.Head_on_a_Stick wrote:Really?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)
Have you checked the drivers (`lspci -k`)?
Have you checked the systemd journal (or dmesg) to see if the button press was recognised?MikeEcho wrote:when I press the this power button, nothing happen
Please post the output ofCode: Select all
systemd-inhibit
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.
Re: Lenovo X280
Thank for your help too but still not working properly ...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):
then runCode: Select all
update-pciids update-usbids
Code: Select all
inxi -Fxz
as a standard user, what does it report?
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
Re: Lenovo X280
This guy (on UBUNTU) doesn't seem to have any kind of these issues.
https://orange.kaosy.org/2018/07/22/rev ... 04-bionic/
https://orange.kaosy.org/2018/07/22/rev ... 04-bionic/
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Lenovo X280
^ MATE should be handling the power button, I presume you have used the settings in that desktop?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
Use systemd's journal to investigate more, this will show any new messages added:
Code: Select all
journalctl -fx
deadbang
Re: Lenovo X280
I'm sorry but I don't understand what you mean by "I presume you have used the settings in that desktop".Head_on_a_Stick wrote:^ MATE should be handling the power button, I presume you have used the settings in that desktop?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
But suspend actually works when I close the lid and that congruent with the setting I choose in Preferences/Power Management.
Nope. Nothing shows up.Head_on_a_Stick wrote:Use systemd's journal to investigate more, this will show any new messages added:^ Run that command in a terminal and then press the power button: do any new messages appear?Code: Select all
journalctl -fx
But the command works because when I increase or decrease the brightness something appears.
Re: Lenovo X280
This problem is solved. Thank to this : https://unix.stackexchange.com/question ... r-anythingMikeEcho wrote:I'm sorry but I don't understand what you mean by "I presume you have used the settings in that desktop".Head_on_a_Stick wrote:^ MATE should be handling the power button, I presume you have used the settings in that desktop?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
But suspend actually works when I close the lid and that congruent with the setting I choose in Preferences/Power Management.
Nope. Nothing shows up.Head_on_a_Stick wrote:Use systemd's journal to investigate more, this will show any new messages added:^ Run that command in a terminal and then press the power button: do any new messages appear?Code: Select all
journalctl -fx
But the command works because when I increase or decrease the brightness something appears.
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 !
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: Lenovo X280
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.
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.
MX Linux packager and developer
Re: Lenovo X280
Thank you for this answer. I've just upgrade my kernel to 4.18.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.
Nevertheless, my webcam isn't working better : the picture I get is still shrinked.
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: Lenovo X280
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)
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)
MX Linux packager and developer
Re: Lenovo X280
Thank you for your help and, please, excuse me for this very late reply ...
It works well !stevepusser wrote:How about the webcam video in guvcview?
I've just tryed one video and it works well. No shrinking whatsoever.stevepusser wrote:Does other video in VLC have the same problem?
stevepusser wrote:What does "apt policy firmware-misc-nonfree" report?
Code: Select all
mikael@THINKPAD:~$ apt policy firmware-misc-nonfree
firmware-misc-nonfree:
Installed: 20161130-4
Candidate: 20161130-4
Version table:
20180825+dfsg-1~bpo9+1 100
100 http://ftp.debian.org/debian stretch-backports/non-free amd64 Packages
*** 20161130-4 500
500 http://ftp.fr.debian.org/debian stretch/non-free amd64 Packages
100 /var/lib/dpkg/status
I've already try and I wasn't able to find any effective workaround. Whatever I choose, I always end up with a shrinked image ...stevepusser wrote:Try setting the video output in VLC to something other than automatic or default, though this is only a halfway fix.
I think that is above my current knowledge of linux ... Sorry.stevepusser wrote: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)
Which one do you think would be effective to upgrade ?stevepusser wrote:updating to the Mesa libraries in stretch-backports
Don't know what OBS is but there is no "better version" of vide-intel in the backports.stevepusser wrote:(if there's no xserver-xorg-video-intel driver in backports, maybe I can do one in the OBS)
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: Lenovo X280
I'm setting up a backports repo of my own that I've added KMFDP (kernel Mesa Firmware Drivers Players) to make it a bit easier to install than the force-install you have to do with stretch-backports. This also has backports of the xorg video drivers, including xserver-xorg-video-intel, that are not in stretch-backports. After you add the repo and the key, and update apt, the new packages should be visible as upgrades, except for the kernel.
Instructions are in this thread: http://forums.debian.net/viewtopic.php?f=16&t=139003
To switch to the "intel" driver, you have to create a text file called "20-intel.conf" with the contents (make sure to leave a blank newline at the end):
Copy the file to /etc/X11/xorg.conf.d, and reboot. Note that Coffee Lake hardware might need the backported "intel" driver in my repo--I found older ones to have some bugs with my Coffee Lake UHD630 hardware.
Instructions are in this thread: http://forums.debian.net/viewtopic.php?f=16&t=139003
To switch to the "intel" driver, you have to create a text file called "20-intel.conf" with the contents (make sure to leave a blank newline at the end):
Code: Select all
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
# Option "AccelMethod" "uxa" #could also use the default "sna"
Option "TearFree" "true"
EndSection
MX Linux packager and developer