Jonathan C. Bailey schrieb:
Hello,

We're running VDI 3.1 (soon to be 3.2), and can't seem to figure out
the best/only way to set mouse acceleration. It looks like I may need to
be doing it for xset, but is there a way to set it per terminal or per
token? I searched the wiki, but didn't find more than a hint about it.
Thanks!


There is no builtin facility for controlling mouse acceleration with VDI.

I don't know, if the RDP server (are you using MS RDP or VirtualBox VRDP?) allows tuning this within your Windows desktop (template) using the Windows Control Panel. If it does, you can use all the usual mechanisms (personal assigned desktop, special pool) to provide special settings for individual users or groups of users.

Otherwise or if you need the mouse acceleration settings to be in effect even for the VDI login and desktop selector, you'll need to use xset.

The best place to do such tuning is to place a (Korn) shell script particle (this will be source, not executed) into directory /etc/dt/config/Xsession.d (create the directory, if it doesn't exist).

In this script you can use the SUN_SUNRAY_TOKEN environment variable to distinguish a console session (which does not have this set) from a Sun Ray session (which does have it). This variable contains the session token, which you can use to look up any per-token settings you may have.

There is obviously no predefined place to store such settings, but if you want it to be per token, you can use the SRSS token registration facility to store such data into the 'other info' field. Your script can use the utuser(1M) tool to retrieve the setting for the current token. Similarly you could use the desktop registration facility and the utdesktop(1M) utility to store per-terminal settings.

To create your own per-user settings is at least one order of magnitude harder, as there is no built-in 'hook' to make such settings *after* vda login, nor a database for per-user settings that is as readily available as the Sun Ray data store.

Note: some X server settings have been reported to be lost when the X server executes a keyboard mapping change. Such a change may happen on the first key press in a session, if you are using international (non-US) keyboards. If you see your settings being lost due to this phenomenon (I don't know if mouse acceleration is affected) then there may be ways to work around this, but that depends on specifics of your deployment.

HTH

- Jörg


--
Jörg Barfurth                        http://blogs.sun.com/joergb

Disclaimer: I am employed by Oracle. The statements and opinions
expressed here are my own and do not necessarily represent those
of Oracle Corporation.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to