View Single Post
Old 03-27-2020, 05:58 PM   #10
yparitcher
Connoisseur
yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.
 
Posts: 52
Karma: 616590
Join Date: Feb 2019
Device: K4 KT4 PW4 PW5
when i run

Code:
lipc-set-prop com.lab126.winmgr epdcMode Y8INV
strace shows
Code:
[pid  3704] 16:40:28.676711 [76937bdc] ioctl(19, FBIOGET_VSCREENINFO, 0x7e90e5f8) = 0
[pid  3704] 16:40:28.680562 [76937bdc] ioctl(19, FBIOPUT_VSCREENINFO or PF_IOCTL_UNINIT, 0x7e90e5f8) = 0
strace: Process 21893 attached
[pid 21893] 16:40:28.750241 [76aa2228] --- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x76aa2228} ---
[pid 21893] 16:40:28.801246 [????????] +++ exited with 0 +++
[pid  3704] 16:40:28.802288 [768d03cc] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21893, si_uid=0, si_status=0, si_utime=0, si_stime=3} ---
strace: Process 21894 attached
[pid 21894] 16:40:28.870378 [????????] +++ exited with 0 +++
[pid  3704] 16:40:28.871231 [768d03cc] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21894, si_uid=0, si_status=0, si_utime=1, si_stime=3} ---
[pid  4910] 16:40:28.916391 [76937bdc] ioctl(19, _IOC(_IOC_WRITE, 0x46, 0x2e, 0x50), 0x7608fc7c) = 0
[pid  4910] 16:40:29.318591 [76937bdc] ioctl(19, _IOC(_IOC_WRITE, 0x46, 0x2e, 0x50), 0x7608fc7c) = 0
[pid  4910] 16:40:29.323166 [76937bdc] ioctl(19, _IOC(_IOC_WRITE, 0x46, 0x2e, 0x50), 0x7608fc7c) = 0
[pid  4910] 16:40:29.336899 [76937bdc] ioctl(19, _IOC(_IOC_WRITE, 0x46, 0x2e, 0x50), 0x7608fc7c) = 0
and since HW nightmode does not actually work on my KT4 every time the screen updates, after the first update it just keeps on flashing white/black

with
Code:
strace -fittv -e trace=ioctl ./fbdepth -vH toggle
i get:
Code:
[FBInk] Detected a Kindle Basic 3 (10L -> 0x414 => Jaeger on Rex)
16:46:49.109301 [76e6abdc] ioctl(3, FBIOGET_VSCREENINFO, 0x23090) = 0
Variable fb info: 600x800 (608x10752), 8bpp @ rotation: 3 (Counter Clockwise, 270°)
16:46:49.114350 [76e6abdc] ioctl(3, FBIOGET_FSCREENINFO, 0x23138) = 0
Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6537216 bytes & line length: 608 bytes

Current bitdepth is already 8bpp, but the grayscale flag is bogus!

Switching fb to 8bpp (current bitdepth) . . .
Setting bitdepth to 8bpp
Setting grayscale to 2
16:46:49.121415 [76e6abdc] ioctl(3, FBIOPUT_VSCREENINFO or PF_IOCTL_UNINIT, 0x23090) = 0
Bitdepth is now 8bpp (grayscale: 2) @ rotate: 3 (Counter Clockwise, 270°)

16:46:49.122738 [76e6abdc] ioctl(3, FBIOGET_VSCREENINFO, 0x23090) = 0
Variable fb info: 600x800 (608x10752), 8bpp @ rotation: 3 (Counter Clockwise, 270°)
16:46:49.123972 [76e6abdc] ioctl(3, FBIOGET_FSCREENINFO, 0x23138) = 0
Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6537216 bytes & line length: 608 bytes
16:46:49.126350 [????????] +++ exited with 0 +++

btw when i try to compile FBInk utils with -flto i get errors
Code:
make CFLAGS=-flto KINDLE=1 CROSS_TC=~/x-tools/arm-kindlepw2-linux-gnueabi/bin/arm-kindlepw2-linux-gnueabi utils 
fatal: No names found, cannot describe anything.
mkdir -p Release/shared/cutef8 Release/static/cutef8 Release/shared/libunibreak/src Release/static/libunibreak/src Release/shared/qimagescale Release/static/qimagescale
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/bin/arm-kindlepw2-linux-gnueabi-gcc  -DNDEBUG -D_REENTRANT=1 -D_GNU_SOURCE -DFBINK_FOR_KINDLE -DFBINK_MINIMAL -flto -ftree-vectorize -funroll-loops -fno-common -Wall -Wextra -Wunused -Wformat=2 -Wformat-signedness -Wformat-truncation=1 -Wnull-dereference -Wuninitialized -Wno-maybe-uninitialized -Wduplicated-branches -Wduplicated-cond -Wundef -Wbad-function-cast -Wwrite-strings -Wjump-misses-init -Wlogical-op -Wstrict-prototypes -Wold-style-definition -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wcast-qual -Wcast-align -Wconversion -Wno-jump-misses-init    -Wl,--as-needed -L./Release -oRelease/rota utils/rota.c
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: /tmp/ccLgKxMp.ltrans0.ltrans.o: in function `font8x8_get_bitmap':
<artificial>:(.text+0xb18): undefined reference to `u8_cp_to_utf8'
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: <artificial>:(.text+0xb3c): undefined reference to `u8_cp_to_utf8'
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: /tmp/ccLgKxMp.ltrans0.ltrans.o: in function `draw':
<artificial>:(.text+0xd94): undefined reference to `u8_strlen2'
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: <artificial>:(.text+0x1c46): undefined reference to `u8_cp_to_utf8'
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: <artificial>:(.text+0x1c96): undefined reference to `u8_cp_to_utf8'
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: <artificial>:(.text+0x30e4): undefined reference to `u8_nextchar2'
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: /tmp/ccLgKxMp.ltrans0.ltrans.o: in function `fbink_print':
<artificial>:(.text+0x7be8): undefined reference to `u8_strlen2'
/home/user/x-tools/arm-kindlepw2-linux-gnueabi/lib/gcc/arm-kindlepw2-linux-gnueabi/7.5.0/../../../../arm-kindlepw2-linux-gnueabi/bin/ld.bfd: <artificial>:(.text+0x857e): undefined reference to `u8_nextchar2'
collect2: error: ld returned 1 exit status
make: *** [Makefile:525: utils] Error 1
but make KINDLE=1 CROSS_TC=~/x-tools/arm-kindlepw2-linux-gnueabi/bin/arm-kindlepw2-linux-gnueabi utils works
yparitcher is offline   Reply With Quote