Lazarus

Programming => Operating Systems => Linux => Topic started by: Blue1987 on September 04, 2011, 09:25:47 am

Title: changing display resolution in linux
Post by: Blue1987 on September 04, 2011, 09:25:47 am
dear all...
while my application works in windows I can use windows.changedisplaysettings...
while in linux (in my case ubuntu, but I hope there is a general solution for linux) how can I do?

I am creating a preference menu in the application from which the user can access to the display settings...


I am sure I have seen a similar question some months ago in the forum, but now I cannot find it!

thank you,
Paolo
Title: Re: changing display resolution in linux
Post by: Drewski on September 04, 2011, 08:02:41 pm
You could use TProcess to execute xrandr.

http://wiki.lazarus.freepascal.org/Executing_External_Programs