Choose style:

Author Topic: Peppermint 10 on Thinkpad X1 Carbon 1st Generation  (Read 397 times)

0 Members and 1 Guest are viewing this topic.

Offline Mitzwinkel

  • nOOb
  • *
  • Posts: 13
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« on: May 19, 2019, 06:39:23 am »
Hello,

I installed Peppermint 10 recently  :) and ran into two issues:

1) the button to mute the microphone does not work;

Can I fix it under Peppermint Control Center - Keyboard Shortcuts - Add New? With some thing like

"amixer -q sset "?

2) The touchpad reacted first a little jumpy. But I am getting used to it.

Code: [Select]
System:    Host: sabias Kernel: 4.18.0-20-generic x86_64 bits: 64 Desktop: N/A
           Distro: Peppermint Ten
Machine:   Device: laptop System: LENOVO product: 3448BT4 v: ThinkPad X1 Carbon serial: N/A
           Mobo: LENOVO model: 3448BT4 serial: N/A
           UEFI: LENOVO v: G6ETC3WW (2.83 ) date: 03/27/2019
Battery    BAT0: charge: 35.9 Wh 98.9% condition: 36.3/46.0 Wh (79%)
CPU:       Dual core Intel Core i7-3667U (-MT-MCP-) cache: 4096 KB
           clock speeds: max: 3200 MHz 1: 1296 MHz 2: 1746 MHz 3: 1205 MHz
           4: 1236 MHz
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
           Display Server: x11 (X.Org 1.20.1 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.01hz
           OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile
           version: 4.2 Mesa 18.2.8
Audio:     Card Intel 7 Series/C216 Family High Def. Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.18.0-20-generic
Network:   Card: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 128.0GB (6.4% used)
           ID-1: /dev/sda model: TOSHIBA_THNSNS12 size: 128.0GB
Partition: ID-1: / size: 117G used: 7.7G (7%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 46.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 3177
Info:      Processes: 201 Uptime: 46 min Memory: 652.6/7795.2MB
           Client: Shell (bash) inxi: 2.3.56

I like Peppermint for its light weight!  ;D

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #1 on: May 19, 2019, 08:39:35 am »
Which mute button are you referring to ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Mitzwinkel

  • nOOb
  • *
  • Posts: 13
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #2 on: May 19, 2019, 09:13:15 am »
I have got an output from xev which reads:

Code: [Select]
MappingNotify event, serial 37, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 37, synthetic NO, window 0x3200001,
    root 0x13f, subw 0x0, time 198960, (194,240), root:(788,533),
    state 0x0, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3200001,
    root 0x13f, subw 0x0, time 198960, (194,240), root:(788,533),
    state 0x0, keycode 198 (keysym 0x1008ffb2, XF86AudioMicMute), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

It is right next to the volume up button which works. It is indended to mute the microphone.


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #3 on: May 19, 2019, 01:26:40 pm »
Okay, have you seen this
https://askubuntu.com/questions/125367/enabling-mic-mute-button-and-light-on-lenovo-thinkpads
and
https://gist.github.com/tybenz/5620255

if you run:
Code: [Select]
acpi_listen
Then hit the mic mute button, do you get an acpi event returned in the terminal ? .. if so, what is it ?

And what's the output from
Code: [Select]
amixer scontrols
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Mitzwinkel

  • nOOb
  • *
  • Posts: 13
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #4 on: May 19, 2019, 02:56:01 pm »
The output of acpi_listen is

Code: [Select]
mitzwinkel@sabias ~ $ acpi_listen
button/f20 F20 00000080 00000000 K

The output from amixer scontrols is:

Code: [Select]
mitzwinkel@sabias ~ $ amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Capture',0


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #5 on: May 19, 2019, 03:56:14 pm »
Run:
Code: [Select]
gksudo xed /etc/acpi/events/lenovo-mutemic
make it read:
Code: [Select]
event=button/f20 F20 00000080 00000000 K
action=/usr/bin/amixer sset 'Capture',0 toggle
SAVE the file and exit the text editor.

Restart the ACPI service
Code: [Select]
sudo service acpid restart
Now test the Mic mute button toggles the Mic on/off.
« Last Edit: May 19, 2019, 03:58:01 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Mitzwinkel

  • nOOb
  • *
  • Posts: 13
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #6 on: May 20, 2019, 02:58:34 am »
When saving the file a get a couple of warnings that read

Code: [Select]
mitzwinkel@sabias ~ $ gksudo xed /etc/acpi/events/lenovo-mutemic

(xed:1353): Gtk-CRITICAL **: 08:49:49.186: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(xed:1353): Gtk-CRITICAL **: 08:49:49.186: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(xed:1353): Gtk-CRITICAL **: 08:49:49.187: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(xed:1353): Gtk-CRITICAL **: 08:49:49.187: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

(xed:1353): Gtk-CRITICAL **: 08:49:49.187: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

** (xed:1353): WARNING **: 08:49:49.304: Set document metadata failed: Setting attribute metadata::xed-spell-language not supported

** (xed:1353): WARNING **: 08:49:49.305: Set document metadata failed: Setting attribute metadata::xed-encoding not supported

** (xed:1353): WARNING **: 08:49:54.805: Set document metadata failed: Setting attribute metadata::xed-position not supported

The resart of the ACPI service delivers no result.

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1752
  • Karma: 466
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #7 on: May 20, 2019, 03:13:51 am »
Hi Milzwinkel,

You can safely ignore those warnings as they have nothing to do with your issue and are unimportant anyway.  ;)

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline Mitzwinkel

  • nOOb
  • *
  • Posts: 13
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #8 on: May 20, 2019, 03:56:56 am »
Hi Slim,

if I click now on button to mute the microphone in the volume control window of PulseAudio, the microphone is muted and the indication LED on the button is lit orange.


Regards,
--
Mitzwinkel



Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #9 on: May 20, 2019, 07:22:17 am »
So it's (SOLVED) now ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Mitzwinkel

  • nOOb
  • *
  • Posts: 13
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #10 on: May 20, 2019, 09:44:11 am »
No, button is still without function.

I just figuered it is possible to mute the microphone with a work around in the PulseAudio application.

When I run

Code: [Select]
amixer -q sset Capture toggle

in the terminal. It switches the button on and off. But I do not get it assigned to the dedicated key.
« Last Edit: May 20, 2019, 10:10:42 am by Mitzwinkel »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25456
  • Karma: 2799
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #11 on: May 20, 2019, 05:06:49 pm »
does
Code: [Select]
/usr/bin/amixer sset 'Capture',0 toggle
also toggle it on/off
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Mitzwinkel

  • nOOb
  • *
  • Posts: 13
  • Karma: 1
  • New Forum User
    • View Profile
  • Peppermint version(s): 10
Re: Peppermint 10 on Thinkpad X1 Carbon 1st Generation
« Reply #12 on: May 21, 2019, 03:03:04 am »
Hi PCNetSpec,

yes, it does  :) and I get:

Code: [Select]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 7612 [12%] [off]
  Front Right: Capture 7612 [12%] [off]

I rechecked what you recommanded before to exclude typos.