Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

t440s and linux

Linux on ThinkPads
Post Reply
Message
Author
mzezelj
Posts: 4
Joined: Thu Nov 23, 2017 7:10 am
Location: Trnovec Bartolovecki, Croatia

t440s and linux

#1 Post by mzezelj » Fri Dec 01, 2017 2:17 pm

My t440s works flawlessly with linux but i still have 2 issues.
First one is with docking - i have pro dock 40a10 and 2 addiitonal moniotrs on display ports
I tried setting up acpid event on dock/undock to setup monitors:

Code: Select all

# cat /etc/acpi/events/thinkpad-dock-lenovo
event=ibm/hotkey LEN0068:00 00000080 00006030
action=su $SUDO_USER -c /etc/acpi/thinkpad-dock.sh

# cat /etc/acpi/events/thinkpad-undock-lenovo
event=ibm/hotkey LEN0068:00 00000080 00004011
action=su $SUDO_USER -c /etc/acpi/thinkpad-undock.sh
and scripts:

Code: Select all

# cat /etc/acpi/thinkpad-*              
#!/bin/bash
xrandr -d :0.0 --output DP2-1 --auto
xrandr -d :0.0 --output DP2-2 --auto
xrandr -d :0.0 --output eDP1 --auto --primary --output DP2-2 --auto --left-of eDP1 --output DP2-1 --auto --left-of DP2-2

#!/bin/bash
xrandr -d :0.0 --output eDP1 --primary --auto --output DP2-1 --off --output DP2-2 --off
And when i undock/dock scripts don't work. i tested with acpi_listen and i see events but i see this in journal:

Code: Select all

# journalctl -u acpid| grep hotkey
Dec 01 12:19:54 workpad root[10028]: ACPI group/action undefined: ibm/hotkey / LEN0068:00
Dec 01 12:19:56 workpad root[10155]: ACPI group/action undefined: ibm/hotkey / LEN0068:00

Any idea how to set this up?

another issue i have is with 4g modem
i have:

Code: Select all

matija@workpad ~ % lsusb.py| grep -i sie
 2-4             1199:a001 ef  2.00  480MBit/s 100mA 4IFs (Sierra Wireless Inc. Sierra Wireless EM7345 4G LTE 013937001315082)
And mbim dirver is loaded along with ncm loaded with prefer_mbim = "Y"

modemmanager seems to hold mbim-acm and i can connect to 4g and it just works, modem-manager-gui sees the modem, i can send and get sms but modem connection breaks after a minute or 2 and system just doesn't see wwan device for few moments and then i can connect again.

Anyone had similar issue?

This is what i get:
modules:

Code: Select all

root@workpad /home/matija # lsmod| grep mbim
cdc_mbim               16384  0
cdc_wdm                20480  2 cdc_mbim
cdc_ncm                32768  1 cdc_mbim
usbnet                 36864  2 cdc_mbim,cdc_ncm
usbcore               208896  14 usbnet,uvcvideo,usbhid,cdc_mbim,ehci_hcd,cdc_acm,cdc_ncm,cdc_wdm,usbserial,xhci_pci,btusb,xhci_hcd,ehci_pci
modem manager service:

Code: Select all

Dec 01 20:08:55 workpad ModemManager[698]: <info>  Simple connect started...
Dec 01 20:08:55 workpad ModemManager[698]: <info>  Simple connect state (4/8): Wait to get fully enabled
Dec 01 20:08:55 workpad ModemManager[698]: <info>  Simple connect state (5/8): Register
Dec 01 20:08:55 workpad ModemManager[698]: <info>  Simple connect state (6/8): Bearer
Dec 01 20:08:55 workpad ModemManager[698]: <info>  Simple connect state (7/8): Connect
Dec 01 20:08:55 workpad ModemManager[698]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: state changed (registered -> connecting)
Dec 01 20:08:55 workpad ModemManager[698]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: state changed (connecting -> connected)
Dec 01 20:08:55 workpad ModemManager[698]: <info>  Simple connect state (8/8): All done
Dec 01 20:08:55 workpad ModemManager[698]: <warn>  Reloading stats failed: OperationNotAllowed
Dec 01 20:09:26 workpad ModemManager[698]: <warn>  Reloading stats failed: OperationNotAllowed
Dec 01 20:09:56 workpad ModemManager[698]: <warn>  Reloading stats failed: OperationNotAllowed
Dec 01 20:10:31 workpad ModemManager[698]: <warn>  Reloading stats failed: Transaction timed out
Dec 01 20:10:33 workpad ModemManager[698]: <info>  (net/wwp0s20u4): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4
Dec 01 20:10:33 workpad ModemManager[698]: [/dev/cdc-wdm0] unexpected port hangup!
Dec 01 20:10:33 workpad ModemManager[698]: <info>  (usbmisc/cdc-wdm0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4
Dec 01 20:10:33 workpad ModemManager[698]: <info>  (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4
Dec 01 20:10:40 workpad ModemManager[698]: opening device...
Dec 01 20:10:40 workpad ModemManager[698]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 512
Dec 01 20:10:41 workpad ModemManager[698]: <info>  Creating modem with plugin 'Sierra' and '3' ports
Dec 01 20:10:41 workpad ModemManager[698]: <info>  Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4' successfully created
Dec 01 20:10:41 workpad ModemManager[698]: opening device...
Dec 01 20:10:41 workpad ModemManager[698]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 512
Dec 01 20:10:45 workpad ModemManager[698]: <info>  Modem: state changed (unknown -> disabled)
Dec 01 20:10:45 workpad ModemManager[698]: <info>  Modem /org/freedesktop/ModemManager1/Modem/2: state changed (disabled -> enabling)
Dec 01 20:10:45 workpad ModemManager[698]: <info>  Modem /org/freedesktop/ModemManager1/Modem/2: 3GPP Registration state changed (unknown -> registering)
Dec 01 20:10:45 workpad ModemManager[698]: <info>  Modem /org/freedesktop/ModemManager1/Modem/2: 3GPP Registration state changed (registering -> home)
Dec 01 20:10:46 workpad ModemManager[698]: <info>  Modem /org/freedesktop/ModemManager1/Modem/2: state changed (enabling -> registered)
Than i remove acm :

Code: Select all

systemctl stop ModemManager.service
rmmod cdc_mbim
rmmod cdc_ncm
modprobe cdc_ncm prefer_mbim=Y
modprobe cdc_mbim
rmmod cdc_acm
systemctl start ModemManager.service
and initiate connection:

Code: Select all

Dec 01 20:13:10 workpad systemd[1]: Started Modem Manager.
Dec 01 20:13:12 workpad ModemManager[1003]: opening device...
Dec 01 20:13:12 workpad ModemManager[1003]: cannot connect to proxy: Could not connect: Connection refused
Dec 01 20:13:12 workpad ModemManager[1003]: spawning new mbim-proxy (try 1)...
Dec 01 20:13:12 workpad ModemManager[1003]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 512
Dec 01 20:13:12 workpad ModemManager[1003]: <info>  Creating modem with plugin 'Sierra' and '2' ports
Dec 01 20:13:12 workpad ModemManager[1003]: <info>  Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4' successfully created
Dec 01 20:13:12 workpad ModemManager[1003]: opening device...
Dec 01 20:13:12 workpad ModemManager[1003]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 512
Dec 01 20:13:12 workpad ModemManager[1003]: <info>  Modem: state changed (unknown -> disabled)
Dec 01 20:13:12 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disabled -> enabling)
Dec 01 20:13:12 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (unknown -> registering)
Dec 01 20:13:12 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (registering -> home)
Dec 01 20:13:13 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabling -> registered)
Dec 01 20:13:13 workpad ModemManager[1003]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin
Dec 01 20:13:13 workpad ModemManager[1003]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0': not supported by any plugin
Dec 01 20:13:21 workpad ModemManager[1003]: <info>  Simple connect started...
Dec 01 20:13:21 workpad ModemManager[1003]: <info>  Simple connect state (4/8): Wait to get fully enabled
Dec 01 20:13:21 workpad ModemManager[1003]: <info>  Simple connect state (5/8): Register
Dec 01 20:13:21 workpad ModemManager[1003]: <info>  Simple connect state (6/8): Bearer
Dec 01 20:13:21 workpad ModemManager[1003]: <info>  Simple connect state (7/8): Connect
Dec 01 20:13:21 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (registered -> connecting)
Dec 01 20:13:22 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> connected)
Dec 01 20:13:22 workpad ModemManager[1003]: <info>  Simple connect state (8/8): All done
Dec 01 20:13:22 workpad ModemManager[1003]: <warn>  Reloading stats failed: OperationNotAllowed
Dec 01 20:13:28 workpad ModemManager[1003]: <info>  Creating modem with plugin 'Generic' and '1' ports
Dec 01 20:13:28 workpad ModemManager[1003]: <warn>  Could not grab port (tty/ttyS0): 'Cannot add port 'tty/ttyS0', unhandled serial type'
Dec 01 20:13:28 workpad ModemManager[1003]: <warn>  Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:16.3': Failed to find primary AT port
Dec 01 20:13:52 workpad ModemManager[1003]: <warn>  Reloading stats failed: OperationNotAllowed
Dec 01 20:14:16 workpad ModemManager[1003]: <info>  (net/wwp0s20u4): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4
Dec 01 20:14:16 workpad ModemManager[1003]: [/dev/cdc-wdm0] unexpected port hangup!
Dec 01 20:14:16 workpad ModemManager[1003]: <info>  (usbmisc/cdc-wdm0): released by modem /sys/devices/pci0000:00/0000:00:14.0/usb2/2-4
Dec 01 20:14:23 workpad ModemManager[1003]: opening device...
Dec 01 20:14:23 workpad ModemManager[1003]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 512
Dec 01 20:14:24 workpad ModemManager[1003]: <info>  Creating modem with plugin 'Sierra' and '3' ports
Dec 01 20:14:24 workpad ModemManager[1003]: <info>  Modem for device at '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4' successfully created
Dec 01 20:14:24 workpad ModemManager[1003]: opening device...
Dec 01 20:14:24 workpad ModemManager[1003]: [/dev/cdc-wdm0] Read max control message size from descriptors file: 512
Dec 01 20:14:28 workpad ModemManager[1003]: <info>  Modem: state changed (unknown -> disabled)
Dec 01 20:14:28 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: state changed (disabled -> enabling)
Dec 01 20:14:28 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: 3GPP Registration state changed (unknown -> registering)
Dec 01 20:14:28 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: 3GPP Registration state changed (registering -> home)
Dec 01 20:14:28 workpad ModemManager[1003]: <info>  Modem /org/freedesktop/ModemManager1/Modem/1: state changed (enabling -> registered)
And it fails again when i try to start speedtest.

Any ideas?
Thanks!

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 4 guests