You are not logged in.

#1 2016-05-16 16:30:28

sokuban
Member
Registered: 2006-11-11
Posts: 412

xrandr -s makes the screen turn black, but keeps resolution on reboot

Due to complicated reasons (*running PC-98 games on T98Next), I need to be able to change my screen resolution to 640x400. (Normally, it is 2880x1800) Doing this has always been pretty simple, I'd generate modelines in gtf, copy those scanlines into xrandr with --newmode, then --addmode to my monitor (which for some reason is named eDP1).

This has always worked fine. Today when I did it, the screen turned black.

I wondered if it was a problem with adding the new resolution to xrandr, so then I tried changing to 640x480 (a resolution that appears in xrandr by default). The same problem happened, the screen turned black, and I powered off. Something even worse happened though, when I rebooted, the screen was still in 640x480 resolution! I then (with great difficulty) ran xrandr to switch back to 2880x1800; of course, black screen again, but when I rebooted after that I was back in 2880x1800.

Anyone know why this is happening?

If not, is there an ad-hoc way I can solve this problem so that I can use 640x400? Considering that it /was/ possible for me to change resolutions, but only after a reboot, and only for a resolution that xrandr already had, would it perhaps be possible for me to kill X and restart it with 640x400 instead of 2880x1800?

*: Well, the thing is, T98Next's fullscreen mode was sort of designed for 4:3 computers, because it was assumed it would be run on a Windows computer and at the time I guess all Windows computers were 4:3. The PC-98 however, has a 16:10 aspect ratio, which is the same as my actual computer. So my solution to enjoying fullscreen PC-98 games is to change my resolution to 640x400, and run T98Next in window mode without window borders. It sounds crazy, but it works wonders.

Offline

#2 2016-05-16 18:44:58

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: xrandr -s makes the screen turn black, but keeps resolution on reboot

CTL+ALT+F{1,2,3,4,5,6} and fix it from there ...

Offline

Board footer

Powered by FluxBB