DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th May 2020
marek marek is offline
Port Guard
 
Join Date: May 2020
Posts: 12
Default PRTSC key not working

Hey,
My printscreen button doesnt work.
I've installed OpenBSD 6.7-beta from snapshots. laptop i use is Lenovo 300 series. When i press Ctrl+v in terminal and after PRTSC key nothing happens. Also key combinations with ctrl, alt,etc..
X sees the key.
xev output:
Quote:
KeyPress event, serial 33, synthetic NO, window 0x2200001,
root 0x17c, subw 0x0, time 1628150, (94,176), root1102,277),
state 0x10, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x2200001,
root 0x17c, subw 0x0, time 1628260, (94,176), root1102,277),
state 0x10, keycode 111 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
xmodmap:
Quote:
keycode 111 = Print Sys_Req Print Sys_Req
My keyboard type as wsconsctl says its pc-xt.
Thanks for help.
Reply With Quote
  #2   (View Single Post)  
Old 16th May 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,028
Default

Hello, and welcome!
Quote:
...in terminal...
  1. Which application are you expecting to process this specific key press?
  2. What is the expected action?
Reply With Quote
  #3   (View Single Post)  
Old 16th May 2020
marek marek is offline
Port Guard
 
Join Date: May 2020
Posts: 12
Default

Hey, thanks.
1. scrot, which works when i bind keys to $mod+F9 in i3, or 4-F9 in cwm,
2. taking screenshots.
Thanks again.
Reply With Quote
  #4   (View Single Post)  
Old 16th May 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,028
Default

Oh, easy peasy. In .i3/config, add:
Code:
bindsym Print exec scrot /full/path/to/file.png
.
Reply With Quote
  #5   (View Single Post)  
Old 16th May 2020
marek marek is offline
Port Guard
 
Join Date: May 2020
Posts: 12
Default

Ou yeah its working. My folder Pictures/SS/ was without right rights for group, i've done chmod 720 for that folder. Thanks.

Last edited by marek; 17th May 2020 at 04:08 AM.
Reply With Quote
  #6   (View Single Post)  
Old 16th May 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,028
Default

For clarity, scrot is just a command line program that doesn't poll for keystrokes. The running window manager is the polling program. I used i3wm in my example, both because you mentioned it and I happen to use it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Working on TTY sML OpenBSD Packages and Ports 1 27th December 2015 08:17 PM
openbsd 5.3 - php not working yce44 OpenBSD Installation and Upgrading 3 3rd June 2013 10:48 PM
Ftp-proxy with NAT PF not working nocturnal OpenBSD Security 3 13th October 2011 03:54 AM
Mouse:X (not-working) and tty-Console (working), in 8.0 ykt FreeBSD General 1 22nd December 2009 12:26 PM
Working with CVS? Zmyrgel OpenBSD General 15 6th October 2009 01:32 PM


All times are GMT. The time now is 05:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick