View Single Post
Old 03-27-2020, 07:06 PM   #14
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
Quote:
Originally Posted by NiLuJe View Post
Sidebar: is that the right strace binary?

It doesn't appear to be decoding the MXCFB_SEND_UPDATES ioctl properly (that's supposed to be the _IOC(_IOC_WRITE, 0x46, 0x2e, ...) stuff), which is weird, since I could have sworn someone used it to send me nightmode dumps at one point...
(Might have been from a Zelda, though).

Remind me to do a fresh build to double-check .
i was using the system strace by mistake

Code:
[root@kindle tc]# ./strace -fittv -e trace=ioctl -p $(pidof awesome)
./strace: Process 3704 attached with 9 threads
[pid  3704] 17:47:18.713611 [76937bdc] ioctl(19, FBIOGET_VSCREENINFO, 0x7e90e5f8) = 0
[pid  3704] 17:47:18.716647 [76937bdc] ioctl(19, FBIOPUT_VSCREENINFO, 0x7e90e5f8) = 0
./strace: Process 25260 attached
[pid 25260] 17:47:18.782768 [76adc228] --- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x76adc228} ---
[pid 25260] 17:47:18.835638 [????????] +++ exited with 0 +++
[pid  3704] 17:47:18.836463 [768d03cc] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25260, si_uid=0, si_status=0, si_utime=1, si_stime=2} ---
./strace: Process 25261 attached
[pid 25261] 17:47:18.900744 [????????] +++ exited with 0 +++
[pid  3704] 17:47:18.901752 [768d03cc] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25261, si_uid=0, si_status=0, si_utime=1, si_stime=5} ---
[pid  4910] 17:47:18.937798 [76937bdc] ioctl(19, MXCFB_SEND_UPDATE, {update_region={top=0, left=0, width=600, height=800}, waveform_mode=WAVEFORM_MODE_AUTO, update_mode=UPDATE_MODE_PARTIAL, update_marker=331, temp=TEMP_USE_AMBIENT, flags=0, dither_mode=EPDC_FLAG_USE_DITHERING_PASSTHROUGH, quant_bit=0, alt_buffer_data={phys_addr=0, width=0, height=0, alt_update_region={top=0, left=0, width=0, height=0}}, hist_bw_waveform_mode=WAVEFORM_MODE_DU, hist_gray_waveform_mode=WAVEFORM_MODE_GC16}, 0x7608fc7c) = 0
[pid  4910] 17:47:19.168755 [76937bdc] ioctl(19, MXCFB_SEND_UPDATE, {update_region={top=91, left=0, width=600, height=709}, waveform_mode=WAVEFORM_MODE_AUTO, update_mode=UPDATE_MODE_PARTIAL, update_marker=332, temp=TEMP_USE_AMBIENT, flags=0, dither_mode=EPDC_FLAG_USE_DITHERING_PASSTHROUGH, quant_bit=0, alt_buffer_data={phys_addr=0, width=0, height=0, alt_update_region={top=0, left=0, width=0, height=0}}, hist_bw_waveform_mode=WAVEFORM_MODE_DU, hist_gray_waveform_mode=WAVEFORM_MODE_GC16}, 0x7608fc7c) = 0
[pid  4910] 17:47:19.172369 [76937bdc] ioctl(19, MXCFB_SEND_UPDATE, {update_region={top=0, left=0, width=600, height=32}, waveform_mode=WAVEFORM_MODE_AUTO, update_mode=UPDATE_MODE_PARTIAL, update_marker=333, temp=TEMP_USE_AMBIENT, flags=0, dither_mode=EPDC_FLAG_USE_DITHERING_PASSTHROUGH, quant_bit=0, alt_buffer_data={phys_addr=0, width=0, height=0, alt_update_region={top=0, left=0, width=0, height=0}}, hist_bw_waveform_mode=WAVEFORM_MODE_DU, hist_gray_waveform_mode=WAVEFORM_MODE_GC16}, 0x7608fc7c) = 0
[pid  4910] 17:47:19.181464 [76937bdc] ioctl(19, MXCFB_SEND_UPDATE, {update_region={top=32, left=0, width=600, height=59}, waveform_mode=WAVEFORM_MODE_AUTO, update_mode=UPDATE_MODE_PARTIAL, update_marker=334, temp=TEMP_USE_AMBIENT, flags=0, dither_mode=EPDC_FLAG_USE_DITHERING_PASSTHROUGH, quant_bit=0, alt_buffer_data={phys_addr=0, width=0, height=0, alt_update_region={top=0, left=0, width=0, height=0}}, hist_bw_waveform_mode=WAVEFORM_MODE_DU, hist_gray_waveform_mode=WAVEFORM_MODE_GC16}, 0x7608fc7c) = 0
./strace: Process 3704 detached
./strace: Process 4888 detached
./strace: Process 4889 detached
./strace: Process 4907 detached
./strace: Process 4908 detached
./strace: Process 4910 detached
./strace: Process 4911 detached
./strace: Process 4912 detached
./strace: Process 15780 detached
vs
Code:
[root@kindle tc]# ./strace -fittv -e trace=ioctl ./fbdepth -qH toggle
17:47:56.314454 [76f17bdc] ioctl(3, FBIOGET_VSCREENINFO, 0x23090) = 0
17:47:56.317420 [76f17bdc] ioctl(3, FBIOGET_FSCREENINFO, 0x23138) = 0
17:47:56.318948 [76f17bdc] ioctl(3, FBIOPUT_VSCREENINFO, 0x23090) = 0
17:47:56.320730 [76f17bdc] ioctl(3, FBIOGET_VSCREENINFO, 0x23090) = 0
17:47:56.322101 [76f17bdc] ioctl(3, FBIOGET_FSCREENINFO, 0x23138) = 0
17:47:56.324760 [????????] +++ exited with 0 +++
fbgrab does not show a difference but with eips -i the grayscale: field is 1 with NM off and 2 with NM on, no differece if changed by lipc or fbdepth
yparitcher is offline   Reply With Quote