How to convert the server time in xEvent to system time?
Hi, There, xEvent.u.keyButtonPointer.time (aka 'server time'?), defined in X11/Xproto.h, indicates the number of milliseconds elapsed since the X server started. I want to convert it to an absolute time which then can be compared with times recorded by gettimeofday () in some other program. Unfortunately, after spending a lot of time, I still can't find out how to do it. If you happen to know how to do it, can you please tell me? Thanks a lot! Weidong Cui ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: Driver (i810) ignores modeline directives in Config File
No replies ... No solutions ... Too sad ... :'( Nqnsome wrote: Hi, I have a Compal CY27 laptop with the 82852/855GM Integrated Graphics Device (rev 02) (lspci output). Even though the BIOS allow me to change the memory allocated to video (32M right now), Xfree only see two built in modes: (**) I810(0): *Built-in mode 800x600 (**) I810(0): *Built-in mode 640x480 I already tried to replace the 800x600 mode by 1024x768 using Poirer's 855resolution , but it does not work (I loose the 800x600 mode, and can not get 1024x768, ending only with 640x480). Does any one know why this is happening? WindowsXP and a commercial X server (Xi Graphics) both can reach 1024x768. Regards, Sergio Peter Gale wrote: On Fri, 2004-08-06 at 10:10, Erwann Thoraval wrote: Hello, I had a problem with my laptop (a DELL 510m with a 1400x1050 screen and the i855 chip). It seems that the i810 XFree driver can *only* use the video resolutions which are listed into the BIOS. I also have a Medion laptop with 1280x800... and Alain Poirer's 855resolution patch fixed it perfectly... Peter Gale ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: Driver (i810) ignores modeline directives in Config File
Nqnsome wrote: No replies ... No solutions ... Too sad ... :'( I'm not sure what you're complaining about. The thread you replied to, which you included in your quoted text, includes the solution to your problem. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. Nqnsome wrote: Hi, I have a Compal CY27 laptop with the 82852/855GM Integrated Graphics Device (rev 02) (lspci output). Even though the BIOS allow me to change the memory allocated to video (32M right now), Xfree only see two built in modes: (**) I810(0): *Built-in mode 800x600 (**) I810(0): *Built-in mode 640x480 I already tried to replace the 800x600 mode by 1024x768 using Poirer's 855resolution , but it does not work (I loose the 800x600 mode, and can not get 1024x768, ending only with 640x480). Does any one know why this is happening? WindowsXP and a commercial X server (Xi Graphics) both can reach 1024x768. Regards, Sergio Peter Gale wrote: On Fri, 2004-08-06 at 10:10, Erwann Thoraval wrote: Hello, I had a problem with my laptop (a DELL 510m with a 1400x1050 screen and the i855 chip). It seems that the i810 XFree driver can *only* use the video resolutions which are listed into the BIOS. I also have a Medion laptop with 1280x800... and Alain Poirer's 855resolution patch fixed it perfectly... Peter Gale ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: How to convert the server time in xEvent to system time?
Am 11.08.2004 00:31:59 schrieb(en) Weidong Cui: Hi, There, xEvent.u.keyButtonPointer.time (aka 'server time'?), defined in X11/Xproto.h, indicates the number of milliseconds elapsed since the X server started. I want to convert it to an absolute time which then can be compared with times recorded by gettimeofday () in some other program. Unfortunately, after spending a lot of time, I still can't find out how to do it. If you happen to know how to do it, can you please tell me? Thanks a lot! Weidong Cui ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel I don't know much about this, but I would suggest, that you use the time-function to get the time in seconds. You divide the number of milliseconds to get seconds and then subtract the values. You get the time of the start of the X-Server in seconds. Maybe you can use this idea Oliver Welter ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
RE: How to convert the server time in xEvent to system time?
Hi, Oliver, Thanks a lot for your reply. I tried this idea before. But the time of the start of the X server I got in this way was not accurate enough for my purpose. Does anybody know how X computes the time stamp for xEvents? Thanks, Weidong Cui I don't know much about this, but I would suggest, that you use the time-function to get the time in seconds. You divide the number of milliseconds to get seconds and then subtract the values. You get the time of the start of the X-Server in seconds. Maybe you can use this idea Oliver Welter -Original Message- From: Weidong Cui [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 3:32 PM To: [EMAIL PROTECTED] Subject: How to convert the server time in xEvent to system time? Hi, There, xEvent.u.keyButtonPointer.time (aka 'server time'?), defined in X11/Xproto.h, indicates the number of milliseconds elapsed since the X server started. I want to convert it to an absolute time which then can be compared with times recorded by gettimeofday () in some other program. Unfortunately, after spending a lot of time, I still can't find out how to do it. If you happen to know how to do it, can you please tell me? Thanks a lot! Weidong Cui ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel