Skip to content

Instantly share code, notes, and snippets.

@niamtokik
Last active March 18, 2021 22:32
Show Gist options
  • Save niamtokik/f255b2dcffbb664bc42af13d890c19e4 to your computer and use it in GitHub Desktop.
Save niamtokik/f255b2dcffbb664bc42af13d890c19e4 to your computer and use it in GitHub Desktop.
OpenBSD Xorg Configuration Files for GPD Pocket with wsfb (/etc/X11/xorg.conf.d/)
Section "Device"
Identifier "Device0"
Driver "intel"
Option "DRI" "3"
EndSection
Section "Monitor"
Identifier "DSI1"
DisplaySize 152 96
Option "Rotate" "right"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Device"
Identifier "/dev/ttyC0"
Driver "wsfb"
Option "Rotate" "CW"
EndSection
@niamtokik
Copy link
Author

niamtokik commented Dec 7, 2017

  • Tested on OpenBSD-Current
  • Screen rotation
  • Resizing with xrandr
  • Resizing with xorg.conf
  • issue: Blank screen when resizing
  • issue: OpenBSD crash when killing Xorg

Thanks to @ben_bai, see its works: http://www.netzbasis.de/openbsd/gpd-win/index.html

What resolution are supported on Ubuntu?

1200x1920 60.38
1152x864 60.00
1024x760 60.00
600x960 60.00
800x600 60.32 56.25
640x480 59.94

How to check resolution configuration on OpenBSD?

You can use cvt command.

# this command will check all mode and add them
# automatically with xrandr. You can see https://man.openbsd.org/xrandr
# for more information.
for i in 1200x1920 1152x864 1024x760 600x960 800x600 640x480
do
  cvt ${i##*x} {i%%x*} \
    | grep -v '^#' \
    | sed 's/^Modeline//' \
    | xargs xrandr --newmode 
done

How Linux distributions are configured for GPD Pocket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment