Class: HackyHAL::DeviceControllers::LinuxComputer
- Inherits:
-
GenericSsh
- Object
- Base
- GenericSsh
- HackyHAL::DeviceControllers::LinuxComputer
- Defined in:
- lib/hacky_hal/device_controllers/linux_computer.rb
Constant Summary
Constants inherited from GenericSsh
GenericSsh::MAX_COMMAND_RETRIES
Instance Attribute Summary
Attributes inherited from GenericSsh
Attributes included from Options
Instance Method Summary collapse
-
#mirror_screens(source_screen, dest_screen) ⇒ Object
All display methods require the sudo user to have password-less access to run the fgconsole command.
- #reset_display_settings(screen) ⇒ Object
- #set_screen_position(screen_1, screen_2, position) ⇒ Object
Methods inherited from GenericSsh
#connect, #connected?, #disconnect, #exec, #initialize
Methods inherited from Base
Methods included from Options
Constructor Details
This class inherits a constructor from HackyHAL::DeviceControllers::GenericSsh
Instance Method Details
#mirror_screens(source_screen, dest_screen) ⇒ Object
All display methods require the sudo user to have password-less access to run the fgconsole command.
9 10 11 |
# File 'lib/hacky_hal/device_controllers/linux_computer.rb', line 9 def mirror_screens(source_screen, dest_screen) xrandr_command("--output #{dest_screen} --same-as #{source_screen}") end |
#reset_display_settings(screen) ⇒ Object
17 18 19 |
# File 'lib/hacky_hal/device_controllers/linux_computer.rb', line 17 def reset_display_settings(screen) xrandr_command("--output #{screen} --auto") end |
#set_screen_position(screen_1, screen_2, position) ⇒ Object
13 14 15 |
# File 'lib/hacky_hal/device_controllers/linux_computer.rb', line 13 def set_screen_position(screen_1, screen_2, position) xrandr_command("--output #{screen_1} --#{position}-of #{screen_2}") end |