Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Vladimir Dergachev
On Sun, 27 Aug 2023, Ahmad Nouralizadeh wrote: Thanks Alan and Vladimir!These are very effective clues to help me understand the whole architecture, but I will need some experiments! :D I may continue with this thread later to ask questions about the main problem discussed here (i.e., turn

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Ahmad Nouralizadeh
Thanks Alan and Vladimir!These are very effective clues to help me understand the whole architecture, but I will need some experiments! :D I may continue with this thread later to ask questions about the main problem discussed here (i.e., turning off the screen), if I find my approach feasible!

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Vladimir Dergachev
On Sun, 27 Aug 2023, Ahmad Nouralizadeh wrote: Perhaps I didn't express my question precisely. I understand that you are talking about the mmap function in the kernel which is usually a function pointer in vm_operations... My question is about the userspace structure of X11. IIUC, we have

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Alan Coopersmith
On 8/27/23 09:53, Ahmad Nouralizadeh wrote: Perhaps I didn't express my question precisely. I understand that you are talking about the mmap function in the kernel which is usually a function pointer in vm_operations... My question is about the userspace structure of X11. IIUC, we have X11 cli

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Ahmad Nouralizadeh
Perhaps I didn't express my question precisely. I understand that you are talking about the mmap function in the kernel which is usually a function pointer in vm_operations... My question is about the userspace structure of X11. IIUC, we have X11 clients, which are GUI apps.They have a portion

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Vladimir Dergachev
On Sun, 27 Aug 2023, Ahmad Nouralizadeh wrote: Thanks (also Dave and Carsten)! Full of useful information not easily found (if even found) on the Internet! You are welcome :) So, in summary, the communication is done through a series of memory mapped regions in the address space of the

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Ahmad Nouralizadeh
Thanks (also Dave and Carsten)! Full of useful information not easily found (if even found) on the Internet! So, in summary, the communication is done through a series of memory mapped regions in the address space of the graphics library (e.g., OpenGL).The image data is transferred 1) from the X

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Vladimir Dergachev
On Sun, 27 Aug 2023, Ahmad Nouralizadeh wrote: > The framebuffer that is displayed on the monitor is always in video card > memory. There is a piece of hardware (CRTC) that continuously pulls data > from the framebuffer and transmits it to the monitor. So the framebuffer memory should normal

Re: Keeping the Screen Turned off While Getting Inputs

2023-08-27 Thread Carsten Haitzler
On Sat, 26 Aug 2023 15:28:52 + (UTC) Ahmad Nouralizadeh said: > Hi, > I need to run a set of (graphical) benchmarks with the screen disabled. The > following command did not work: xset dpms force off > > Because any keyboard/mouse input would re-enable the screen. The other option > was the