Unable to use Printscreen Button on Ubuntu 14.04 in GNOME Shell

Bug #1295994 reported by Marcuz93 on 2014-03-22
160
This bug affects 36 people
Affects Status Importance Assigned to Milestone
gnome-screenshot (Ubuntu)
Undecided
Unassigned

Bug Description

Hi, I am trying Ubuntu 14.04 and I noticed that Printscreen button doesn't work. I had no problems in 13.10. If I run "gnome-screenshot", or "gnome-screenshot -a" in a Terminal it says "Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11. I noticed that the function works if custom shortcuts are set. Can anyone help? Thanks

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1295994/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → gnome-screensaver (Ubuntu)
affects: gnome-screensaver (Ubuntu) → gnome-screenshot (Ubuntu)
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-screenshot (Ubuntu):
status: New → Confirmed
Mario Martins (mariom93-d) wrote :

I am currently running Ubuntu14.04 upgraded from Ubuntu 13.10 too. And the bug persists. The PrintScreen button works under the Fn+Del key combination. My notebook is a HP pavilion dv6.

Norbert (nrbrtx) on 2014-04-25
summary: - Unable to use Printscreen Button on Ubuntu 14.04
+ Unable to use Printscreen Button on Ubuntu 14.04 in GNOME Shell
Kang Soni (bksaur) wrote :

I did succeed to capture my screen on Ubuntu 14.04.
If you want to shoot your screen, press 'fn+sys rq' combination instead of fn+prt sc.

I don't have that button..but anyway it would be only a workaround...In 13.10 the function worked correctly so it's better to have a fix..thanks for your suggestion though :-)

Elton RC (eltonrc) wrote :

Mario, this is my case too. My "prt sc" key doesn't work, but "Fn+Del" works.

Norbert (nrbrtx) wrote :

@Elton,
if you have HP Pavilion, please install and run xev as I suggest here ( https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1282649/comments/14 ).
Another option is make use of external keyboard and test <PrintScreen> with it (see https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1282649/comments/25).
If <PrintScreen> works with external keyboard - I suspect that the problem is between laptop keyboard and its driver.

Here's my output of xev:

PRT SCREEN:

KeyPress event, serial 28, synthetic NO, window 0x4000001,
    root 0xb8, subw 0x0, time 317231, (-306,239), root:(481,291),
    state 0x0, keycode 218 (keysym 0xff61, Print), same_screen YES,
    XKeysymToKeycode returns keycode: 107
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4000001,
    root 0xb8, subw 0x0, time 317355, (-306,239), root:(481,291),
    state 0x0, keycode 218 (keysym 0xff61, Print), same_screen YES,
    XKeysymToKeycode returns keycode: 107
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

FN+DEL:

KeyPress event, serial 28, synthetic NO, window 0x4000001,
    root 0xb8, subw 0x0, time 389801, (-105,70), root:(682,122),
    state 0x0, keycode 119 (keysym 0xffff, Delete), same_screen YES,
    XLookupString gives 1 bytes: (7f) ""
    XmbLookupString gives 1 bytes: (7f) ""
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4000001,
    root 0xb8, subw 0x0, time 389998, (-105,70), root:(682,122),
    state 0x0, keycode 119 (keysym 0xffff, Delete), same_screen YES,
    XLookupString gives 1 bytes: (7f) ""
    XFilterEvent returns: False

For me fn+del doesn't work either..

Norbert (nrbrtx) wrote :

@Marcuz93
it seems that display manager does not react on PrintScreen and Fn+Del keys.
If key is processed normally (made screenshot) there is only one line KeyRelease (for PrintScreen button).

So I suggest to try external keyboard.
Another option is to try these buttons in Guest session or from Ubuntu 14.04 LiveCD.

Unfortunately I don't have an external keyboard but I can tell you that even in LiveCD it doesn't work

Same issue with HP Pavilion dv6

My xev output:

% xev -event keyboard
Outer window is 0x4800001, inner window is 0x4800002

KeymapNotify event, serial 24, synthetic NO, window 0x0,
    keys: 4294967237 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

KeyRelease event, serial 25, synthetic NO, window 0x4800001,
    root 0xb4, subw 0x0, time 2050831, (886,458), root:(886,510),
    state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4800001,
    root 0xb4, subw 0x0, time 2054970, (886,458), root:(886,510),
    state 0x10, keycode 218 (keysym 0xff61, Print), same_screen YES,
    XKeysymToKeycode returns keycode: 107
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4800001,
    root 0xb4, subw 0x0, time 2055088, (886,458), root:(886,510),
    state 0x10, keycode 218 (keysym 0xff61, Print), same_screen YES,
    XKeysymToKeycode returns keycode: 107
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

On HP Pavilion dv6, works with Fn+del

Gregor (gregor-g) wrote :

HP Pavilion dm1 with AMD E450 APU.
The slightly upgraded model is Ubuntu certified: http://www.ubuntu.com/certification/hardware/201209-11793/ and this one worked well until 13.10. The prt sc key stopped working in 14.04, while the Fn keys for brightnes (Fn+F2, Fn+F3) and for screen switching (Fn+F4) do not work since 13.10. Workarround for Fn keys is to use Meta key (e.g. meta+F2 to reduce brightness) in Kubuntu instead.
I've tried a number of liveCD
Everything works in 12.04 (tried with Xubuntu that i had layign arorund)

Gregor (gregor-g) wrote :

accidentally pressed enter and posted a comment haven't finished yet...:
13.10 Live Kubuntu - Fn keys not working, Prt Sc working
14.04 - none of them working
OpenSUSE - none of them working
Fedora 20 Gnome live - none of them working
Manjaro live - Prt Sc is working, but the FN keys are not working

Gregor (gregor-g) wrote :

xev pressing the prt sc key:
KeymapNotify event, serial 22, synthetic NO, window 0x0,
    keys: 4294967227 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

KeyPress event, serial 25, synthetic NO, window 0x3000001,
    root 0xa6, subw 0x0, time 593271, (-626,612), root:(282,635),
    state 0x0, keycode 218 (keysym 0xff61, Print), same_screen YES,
    XKeysymToKeycode returns keycode: 107
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0xa6, subw 0x0, time 593487, (-626,612), root:(282,635),
    state 0x0, keycode 218 (keysym 0xff61, Print), same_screen YES,
    XKeysymToKeycode returns keycode: 107
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

----
pressing Fn=Del gives me this:

KeymapNotify event, serial 22, synthetic NO, window 0x0,
    keys: 4294967227 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
           0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

KeyPress event, serial 25, synthetic NO, window 0x3000001,
    root 0xa6, subw 0x0, time 775192, (-746,721), root:(162,744),
    state 0x0, keycode 119 (keysym 0xffff, Delete), same_screen YES,
    XLookupString gives 1 bytes: (7f) ""
    XmbLookupString gives 1 bytes: (7f) ""
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0xa6, subw 0x0, time 775310, (-746,721), root:(162,744),
    state 0x0, keycode 119 (keysym 0xffff, Delete), same_screen YES,
    XLookupString gives 1 bytes: (7f) ""
    XFilterEvent returns: False

pressing Fn keys gives me nothing.
I forgto to mention before but FnF12 kez (wireless on off) does also not work however it never worked before and i can use network manager to turn wi-fi off as workarround.

Fn+shift (+pause/break) also doesn't seem to be working (found that out using acpi_listen). i haven't tested this in other distros only Kubuntu 14.04.

Luigi R. (xluigi84) wrote :

HP DV6 same problem. I do not think the bug is due to gnome-screenshot but it a problem of the keyboard map. STAMP is not recognized at all. First I noticed I was not able to use altgr+STAMP REISUB anymore, now the screenshot.

I have changed the shortcut for the screenshot to alt+h for instance and it works fine.

If I open system settings->keyboard and then I click on the small keyboard icon I notice that the stamp button is not highlighted when I press it.

The keyboard and Sysrq ware working fine on Ubuntu 13.04 for sure

I have an HP Pavilion dv6 and this affects me too.

The only shortcut working for me is Alt+PrtSc. PrtSc alone does not work, neither Shift+PrtSc.

I've tried running 'gnome-screenshot' and 'gnome-screenshot -a' on the Terminal and they work fine.
I've also assigned these commands to other key shortcuts and they work fine.

Slava (slavaz1982) wrote :

I have HP Pavilion g7 1202er and print screen not working for me too.

I have an HP Pavilion dv7 and the "fn+prt sc" combination doesn't work. I couldn't get any key combination to work, not even "fn+delete".
Running 'gnome-screenshot' in the Terminal works, but obviously isn't convenient.
I hope this bug will be resolved.

Palmar Thorsteinsson (palmar) wrote :

This happened to me on a Thinkpad T430 after an upgrade to 14.04. Print screen worked on 13.10 before the upgrade.

I don't know if this is related but I also seem to have lost the functionality of the keyboard volume keys and "Fn" keys, such as for controlling screen brightness.

LoWang (vitas-lowang) wrote :

I have the same problem. None of the screen capturing key shortcuts seem to be doing anything. Fn+home/end to change screen brightness work though... Thinkpad T420, Ubuntu 14.04

JANARDHAN H L (janardhanhl) wrote :

I do have a same problem with HP Pavillion g6 2313ax

Timofey (boggad) wrote :

I found solution that works just fine. As I noticed from xev output pressing prt sc on HP Pavilion returns two different codes: 218(the key's code itself) and XKeysymToKeycode returns 107. I looked at key mapping with xmodmap -pke and noticed that there's binding 107 to Print action but there's no binding for 218 keycode. So I just add binding for keycode 218:
xmodmap -e "keycode 218 = Print"
and then removed binding from 107 keycode
xmodmap -e "keycode 107 = "
After that everything have started working just fine.
Hope I helped someone.

Timofey (boggad) wrote :

I finally found a permament solution! For me, the way with xmodmap worked only till the reboot. As I fount out later the xmodmap is deprecated and exists just for compability. Well, here we go:

1) go to the xkb settings:
cd /usr/share/X11/xkb

2) now execute the following:
setxkbmap -print
you'll have something like this:
xkb_keymap {
 xkb_keycodes { include "evdev+aliases(qwerty)" };
 xkb_types { include "complete" };
 xkb_compat { include "complete+ledscroll(group_lock)" };
 xkb_symbols { include "pc+us+ru:2+inet(evdev)" };
 xkb_geometry { include "pc(pc105)" };
};
look at your 'xkb_keycodes' line, the 'evdev' is name of needed file.

3) as we are at ' /usr/share/X11/xkb':
sudo nano keycodes/evdev
now you have to change this line:
<PRSC> = 107
to that:
<PRSC> = 218
or whatever code xev returns for you.
now find line like this:
<I218> = 218
and change that to:
alias <I218> = <PRSC>
now save the file.

4) copy your output at the 2nd step and save this to a file, for example, /usr/share/X11/xkb/my

5) clear the cached compiled keymaps:
sudo rm -f /var/lib/xkb/*.xkm

6) compile your keymaps:
xkbcomp /usr/share/X11/xkb/my $DISPLAY
(you may have warnings, that's ok, but you don't want to get errors)
now try xev and press print screen, you shouldn't have the 'XKeysymToKeycode' string anymore. If so, reassign keys for screenshots in Ubuntu settings. By now you should be able to make screenshot with PrintScr key.

Anmar Oueja (anmar) wrote :

This works out of the box on 15.04. I am using X1 carbon first generation.

Julien Olivier (julo) wrote :

I have the exact same problem on my HP Pavilion and Ubuntu GNOME 15.04.

Igor (wgle) wrote :

Work for me on Ubuntu 14/04 HP Pavilion 15-n293sr!!! Thanks a lot!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers