On upgrade to 19.10, Unity custom keyboard shortcuts stop working

Bug #1847704 reported by Alistair Cunningham
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity (Ubuntu)
New
Undecided
Unassigned

Bug Description

After upgrading from 19.04 to 19.10, custom keyboard shortcuts in Unity stop working. I have Super-X bound to "gnome-terminal --maximize", Super-F bound to "firefox" and Super-T bound to "thunderbird". All worked before the upgrade, but none do now. Changing the custom shortcuts to other key combinations, such as Alt-D, does not help. Default shortcuts, such as Ctrl-Alt-T for terminal work correctly.

Reporting this for the "unity" package as I don't know which package handles the keyboard shortcuts. Feel free to re-assign to the correct package.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: unity 7.5.0+19.10.20190924-0ubuntu1
ProcVersionSignature: Ubuntu 5.3.0-17.18-generic 5.3.1
Uname: Linux 5.3.0-17-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
.tmp.unity_support_test.0:

ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity:Unity7:ubuntu
Date: Thu Oct 10 22:32:06 2019
DistUpgraded: 2019-10-04 12:01:19,205 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'
DistroCodename: eoan
DistroVariant: ubuntu
DkmsStatus:
 exfat, 2.2.0-2arter97-0~201910091437~ubuntu19.10.1, 5.3.0-13-generic, x86_64: installed
 exfat, 2.2.0-2arter97-0~201910091437~ubuntu19.10.1, 5.3.0-17-generic, x86_64: installed
GraphicsCard:
 Intel Corporation HD Graphics 620 [8086:5916] (rev 02) (prog-if 00 [VGA controller])
   Subsystem: Lenovo HD Graphics 620 [17aa:224b]
InstallationDate: Installed on 2017-08-16 (785 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
MachineType: LENOVO 20HFCTO1WW
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-17-generic root=UUID=c023de63-612b-4367-874e-b3c987874f56 ro quiet splash vt.handoff=7
SourcePackage: unity
UpgradeStatus: Upgraded to eoan on 2019-10-04 (6 days ago)
dmi.bios.date: 07/19/2019
dmi.bios.vendor: LENOVO
dmi.bios.version: N1WET55W (1.34 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20HFCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrN1WET55W(1.34):bd07/19/2019:svnLENOVO:pn20HFCTO1WW:pvrThinkPadT470s:rvnLENOVO:rn20HFCTO1WW:rvrNotDefined:cvnLENOVO:ct10:cvrNone:
dmi.product.family: ThinkPad T470s
dmi.product.name: 20HFCTO1WW
dmi.product.sku: LENOVO_MT_20HF_BU_Think_FM_ThinkPad T470s
dmi.product.version: ThinkPad T470s
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.14.0+19.10.20190918-0ubuntu1
version.libdrm2: libdrm2 2.4.99-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 19.2.0-1ubuntu2
version.libgl1-mesa-glx: libgl1-mesa-glx 19.2.0-1ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.20.5+git20191008-0ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20190815-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A
xserver.bootTime: Tue Oct 10 16:17:44 2017
xserver.configfile: default
xserver.errors:
 Failed to load module "fbdev" (module does not exist, 0)
 Failed to load module "vesa" (module does not exist, 0)
 Failed to load module "fbdev" (module does not exist, 0)
 Failed to load module "vesa" (module does not exist, 0)
xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.19.3-1ubuntu1.1
xserver.video_driver: modeset

Revision history for this message
Alistair Cunningham (acunningham) wrote :
Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Custom keyboard shortcuts works here. You just need to reassign them.

Revision history for this message
Alistair Cunningham (acunningham) wrote :

I have tried re-assigning them, and this does not help. What would you suggest I try re-assigning them to?

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

It seems xkb/xorg keyboard modifier changed for your case (Lenovo has a bad history). So already pre-defined shortcuts are not working like

Super + D = Desktop
Super + F = File Lens

So instead use Ctrl+Alt+x, Ctrl+Alt+F etc from control-center->keyboard->shortcuts.

Revision history for this message
Alistair Cunningham (acunningham) wrote :

I'm not talking about predefined shortcuts; I'm talking about custom shortcuts that I created myself. Nor am I talking about the desktop or file lens.

In any case, my custom shortcuts worked fine on this same laptop in Ubuntu 18.04, 18.10, and 19.04. They only stopped working in Ubuntu 19.10. I don't see how this can be Lenovo's fault?

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

The shortcuts keys you use for your custom shortcuts are being used somewhere else. Usually it should disable the old shortcut and enable yours. But it seems it is not happening here. Did you reboot after the upgrade? Please mention the installed version of Unity, unity-control-center & unity-settings-daemon. To debug,

1. Install compiz-config-settings manager. Make sure you have unity profile selected in preference.

2. Reboot & Recreate those shortcuts from system-settings->keyboard->shortcuts->custom-shortcuts

3. Open terminal & run `unity-settings-daemon -r --debug`.

4. Wait for it to stop printing, then press enter couple of times to separate the cursor.

5. Now press your custom shortcuts , you will some log printing on the terminal.

6. Paste the output to https://paste.ubuntu.com/

7. When done, re-login.

Revision history for this message
Alistair Cunningham (acunningham) wrote :

Which package is "compiz-config-settings manager"? I don't see any such package in 19.10:

root@albatross:~# apt install compiz-config-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package compiz-config-settings
root@albatross:~# apt install compiz-config-settings*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package compiz-config-settings*
E: Couldn't find any package by glob 'compiz-config-settings*'
E: Couldn't find any package by regex 'compiz-config-settings*'
root@albatross:~# apt search compiz-config-settings
Sorting... Done
Full Text Search... Done
root@albatross:~#

Revision history for this message
Alistair Cunningham (acunningham) wrote :

I have done the rest of the steps you've asked for. When I press Super-X, "unity-settings-daemon -r --debug" prints "x".

https://paste.ubuntu.com/p/njpznFKqB7/

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

sudo apt-get install compizconfig-settings-manager

then type "ccsm" in dash and press enter.

> When I press Super-X, "unity-settings-daemon -r --debug" prints "x".

Yes it means it is not recognizing super key or it is locked. Open gnome-tweaks-> Keyboard & mouse and check alt/win key behavior is disabled.

Try with latest live iso if you can reproduce the error on your laptop.

Revision history for this message
Alistair Cunningham (acunningham) wrote :

root@albatross:~# apt-get install compizconfig-settings-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
compizconfig-settings-manager is already the newest version (1:0.9.14.0+19.10.20190918-0ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

I ran 'ccsm', and it loaded a window. I wasn't sure what to do then.

I checked the alt/win key behavior in gnome-tweaks, and it is indeed disabled.

Revision history for this message
Alistair Cunningham (acunningham) wrote :

The custom shortcuts menu allows me to assign Super-X to a shortcut by pressing the windows key and X. Presumably that indicates that the super key is working correctly?

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Ah, I figured out what's happening. unity-control-center even though released in trunk, never got updated in release pocket. I have raised the issue.

Meanwhile, you can use unity7maintainers PPA.

https://launchpad.net/~unity7maintainers/+archive/ubuntu/unity7-desktop

1. sudo add-apt-repository ppa:unity7maintainers/unity7-desktop && sudo apt-get update

2. sudo apt-get install unity-control-center libunity-control-center1

Then reboot and recreate those shortcuts and it will work.

Revision history for this message
Alistair Cunningham (acunningham) wrote :

Thank you. Do you know when it will be updated in release pocket?

Revision history for this message
Alistair Cunningham (acunningham) wrote :

Upon doing "apt update && apt full-upgrade", this now appears to be fixed. Thank you for your help.

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.