I would like to be able to turn off my screen upon a keypress. I need vbetool to do that (
xset dpms force off just blanks it, does not turn it off). However, vbetool needs root priviledges. So I put line
my_user_name ALL=NOPASSWD:/usr/sbin/vbetool" into my sudoers file with visudo. However, when I run
vbetool dpms off, it says
mmap /dev/zero: Operation not permitted Failed to initialise LRMI (Linux Real-Mode Interface).
Any ideas how to solve this?