Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

800x1280_50 will not make #27

Open
StickyDigit opened this issue Mar 13, 2023 · 2 comments
Open

800x1280_50 will not make #27

StickyDigit opened this issue Mar 13, 2023 · 2 comments

Comments

@StickyDigit
Copy link

I use 50Hz for video as I'm in the UK... not a native rate on my Linx 1010B fondle-slab. For xorg, I used to use a simple script with xrandr, and for Wayland shove the modeline in the sway config, but it seems both fail in recent kernels.

So.. I tried to use edid-generator to generate the edid file like this.

First, generate the modeline exactly as I'd done for the previously working xrandr

$ cvt 800 1280 50 
# 800x1280 49.82 Hz (CVT) hsync: 65.76 kHz; pclk: 70.50 MHz
Modeline "800x1280_50.00"   70.50  800 856 936 1072  1280 1283 1293 1320 -hsync +vsync

Which with aspect ratio added becomes...

Modeline "800x1280_50.00"   70.50  800 856 936 1072  1280 1283 1293 1320 -hsync +vsync ratio=10:16

Which modeline2edid seems to grok just fine.

Make though, breaks.

$ make 
cc -c -DCRC="0x00" -o 800x1280_50.00.o 800x1280_50.00.S
edid.S: Assembler messages:
edid.S:270: Warning: repeat < 0; .fill ignored
edid.S:175: Error: invalid operands (*UND* and *ABS* sections) for `<<'
make: *** [Makefile:16: 800x1280_50.00.o] Error 1

1280x800_50 builds fine, but this fondle-slab needs portrait definitions.

The content of the errant .S

$ cat 800x1280_50.00.S 
/* 800x1280_50.00: Modeline "800x1280_50.00" 70.50 800 856 936 1072 1280 1283 1293 1320 -hsync +vsync ratio=10:16 */
#define HSYNC_POL 1
#define VSYNC_POL 1
#define YPULSE (63+10)
#define XPULSE 80
#define YPIX 1280
#define XPIX 800
#define VFREQ 60
#define DPI 96
#define CLOCK 70500
#define VERSION 1
#define REVISION 3
#define XOFFSET 56
#define YOFFSET (63+3)
#define XY_RATIO XY_RATIO_10_16
#define YBLANK 40
#define XBLANK 272
#define TIMING_NAME "800x1280_50.00"
#include "edid.S"

Using Linuxmint 21.1

@sl1pkn07
Copy link

sl1pkn07 commented May 18, 2023

same here but with 800x480@60 display in manjaro ARM

Modeline "800x480_60.00" 29.50 800 824 896 992 480 483 493 500 -hsync +vsync ratio=5:3

@sl1pkn07
Copy link

sl1pkn07 commented May 19, 2023

i think i know the culprit. 10:16 or 5:3 is "not valid" ratio for edid.S

in you case. seems a typo, should be 16:10, but in my case, 5:3 not exisat in the implementation

anyone know how add it? 800x480 is a commonly used for rpi/movile devices

greetings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants