Hi there, Would it work if I just changed it to:
displaynum=`COLUMNS=1000 ps ax | grep -e 'X .* vt'$console | grep -v grep | sed -re 's!.*/X .*:([0-9]+).*!\1!'` I dislike the use of perl in your solution, the acpi-support package does not use perl at the moment and I'm reluctant to add another dependency for something as simple as this. The part about the non-maching regexps I don't get, could you explain that a bit further? For now I'll simply commit the COLUMNS=1000 fix and I'll assume that this fixes the COLUMNS problem. Cheers, Bart