GLhack changes screen resolution and doesn't reset it

Bug #1385797 reported by Jason Heeris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glhack (Ubuntu)
New
Undecided
Unassigned

Bug Description

Package: glhack 1.2-2
Ubuntu: Ubuntu 14.04.1 LTS 64-bit

Steps to reproduce: run glhack from a terminal.

Upon running GLhack, my resolution is changed to 800x600. GLhack then crashes, leaving the resolution at that level (with panning enabled). I have to use xrandr to fix it, or log out and back in.

I'm using the proprietary nvidia driver v 331.38 on a GeForce G105M.

Here's a terminal session showing the problem:

$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 164mm
   1366x768 60.0*+ 40.1
HDMI-0 disconnected (normal left inverted right x axis y axis)
$ glhack
Warning: cannot write scoreboard file /var/games/glhack/record
-- glHack: Autodetected video depth: 32 bits per pixel.
-- glHack: Autodetected 5 different video modes.
-- glHack: Selected 800x600...
/var/games/glhack/perm_lock: Operation not permitted
Cannot lock /var/games/glhack/perm for unknown reason (1).
$ xrandr
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 8192 x 8192
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected primary 800x600+0+0 (normal left inverted right x axis y axis) 293mm x 164mm panning 1366x768+0+0
   1366x768 60.0*+ 40.1
HDMI-0 disconnected (normal left inverted right x axis y axis)

Jason Heeris (detly)
description: updated
Revision history for this message
aescht (hechtb) wrote :

I ran into the same problem. I saw that the group of /var/games/glhack is games with permissions -rw-rwSr--. My user is in user group gamer but not games, so the S didn't apply to me. Adding me to group games solved the startup problem.

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.