GLhack changes screen resolution and doesn't reset it
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: Autodetected video depth: 32 bits per pixel.
-- glHack: Autodetected 5 different video modes.
-- glHack: Selected 800x600...
/var/games/
Cannot lock /var/games/
$ 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)
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.