XF86MISC - Online Linux Manual PageSection : 3
Updated : libXxf86misc 1.0.3
Source : X Version 11
Note : X FUNCTIONS

NAMEXF86MiscQueryExtension, XF86MiscQueryVersion, XF86MiscGetMouseSettings, XF86MiscSetMouseSettings, XF86MiscGetKbdSettings, XF86MiscSetKbdSettings − Extension library for the XFree86-Misc X extension.

SYNTAX​#include <X11/extensions/xf86misc.h> Bool XF86MiscQueryExtension( Display *display , int *event_base_return , int *error_base_return); Bool XF86MiscQueryVersion( Display *display , int *major_version_return , int *minor_version_return); Status XF86MiscGetMouseSettings( Display *display , XF86MiscMouseSettings *mseinfo); Status XF86MiscSetMouseSettings( Display *display , XF86MiscMouseSettings *mseinfo); Status XF86MiscGetKbdSettings( Display *display , XF86MiscKbdSettings *kbdinfo); Status XF86MiscSetKbdSettings( Display *display , XF86MiscKbdSettings *kbdinfo);

ARGUMENTSdisplay Specifies the connection to the X server. screen Specifies which screen number the setting apply to. event_base_return Returns the base event number for the extension. error_base_return Returns the base error number for the extension. major_version_return Returns the major version number of the extension. minor_version_return Returns the minor version number of the extension. mseinfo Specifies a structure which contains the mouse parameters. kbdinfo Specifies a structure which contains the keyboard parameters.

STRUCTURESMouse: typedef struct { char *device; /∗ returned path to device */ int type; /∗ mouse protocol */ int baudrate; /∗ 1200, 2400, 4800, or 9600 */ int samplerate; /∗ samples per second */ int resolution; /∗ resolution, count per inch */ int buttons; /∗ number of buttons */ Bool emulate3buttons; /∗ Button1+Button3 -> Button2 ? */ int emulate3timeout; /∗ in milliseconds */ Bool chordmiddle; /∗ Button1+Button3 == Button2 ? */ int flags; /∗ Device open flags */ } XF86MiscMouseSettings; Keyboard: typedef struct { int type; /∗ of keyboard: 84-key, 101-key, Xqueue */ int rate; /∗ repeat rate */ int delay; /∗ delay until repeat starts */ Bool servnumlock; /∗ Server handles NumLock ? */ } XF86MiscKbdSettings;

DESCRIPTIONThese functions provide an interface to the XFree86-Misc extension which allows various server settings to be queried and changed dynamically. Applications that use these functions must be linked with  -lXxf86misc 

POWER-SAVER FUNCTIONSThe  XF86MiscGetSaver  and  XF86MiscSetSaver  functions have been removed. This functionality is now provided by the DPMS extension.

MOUSE FUNCTIONSMouse parameters can be queried using the function  XF86MiscGetMouseSettings . The structure pointed to by its second argument is filled in with the current mouse settings. Not all fields are valid in all cases. For example, when the protocol indicates a bus mouse (i.e. the type field has value  MTYPE_BUSMOUSE  as defined in  xf86misc.h ), then the value in the  baudrate  field should be ignored as it does not apply to bus mice. The  samplerate  field contains the resolution in lines per inch when using the Hitachi tablet protocol. The device field of the structure points to dynamically allocated storage which should be freed by the caller. Any of the fields of the structure can be altered and then passed to the  XF86MiscSetMouseSettings  function to change their value in the server, with the following restrictions: 1) The device can not be changed 2) The protocol can not be changed to or from Xqueue or OsMouse 3) The buttons field can not be changed 4) Invalid combinations of parameters are not allowed The server will generate an error if any of the above is attempted, except the first − the contents of the device field are simply ignored. A change of the protocol causes the device to be closed and reopened. Changes to the baud rate, sample rate, resolution or flags, when applicable to the selected protocol, also cause a reopen of the device. A reopen can be forced by using the MF_REOPEN flag, except in the case of the OsMouse and Xqueue protocols which ignore all attempts to reopen the device.

KEYBOARD FUNCTIONSThe  XF86MiscGetKbdSettings  function allows you to retrieve the current keyboard-related settings from the server. Using the  XF86MiscSetKbdSettings  function, the keyboard autorepeat delay and rate can be set. Requests to change the  type  and  servnumlock  fields are ignored (except for checking for an invalid keyboard type). This is expected to change in a future release.

OTHER FUNCTIONSTwo functions,  XF86MiscQueryExtension  and  XF86MiscQueryVersion , are provided which allow the client to query some information regarding the extension itself.

PREDEFINED VALUESThe header file  X11/extensions/xf86misc.h  contains definitions for MTYPE_Mouse protocols KTYPE_Keyboard types MF_Mouse flags

SEE ALSOxset(1), xorg.conf(5)

AUTHORSJoe Moss and David Dawes, The XFree86 Project, Inc.
0
Johanes Gumabo
Data Size   :   17,998 byte
man-XF86MiscQueryVersion.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 237,507
Visitor ID   :     :  
Visitor IP   :   18.119.118.151   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.