Skip to content

Commit

Permalink
treehouses help resolution improved (fixes #2073) (#2079)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
rjpadilla and dogi committed Mar 11, 2021
1 parent 8de089d commit a99246b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ magazines downloads specific magazine issue as a
<magpi> [number] downloads issue [number] of magazine
<wireframe> [list] lists downloaded magazines in tree format of specific magazine
[url] shows the homepage URL of magazine
resolution <cea|dmt [modes]> sets the screen resolution
resolution <cea|dmt [modes]> sets the screen resolution depending on the attached display device
system [cpu|ram|disk|volt|temperature] display real system informations
message gitter <apitoken|authorize> sets api/channel info in config file and sends/recieves messages in gitter
<send|show|read|mark>
Expand Down
2 changes: 1 addition & 1 deletion modules/help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ magazines downloads specific magazine issue as a
<magpi> [number] downloads issue [number] of magazine
<wireframe> [list] lists downloaded magazines in tree format of specific magazine
[url] shows the homepage URL of magazine
resolution <cea|dmt [modes]> sets the screen resolution
resolution <cea|dmt [modes]> sets the screen resolution depending on the attached display device
system [cpu|ram|disk|volt|temperature] display real system informations
message gitter <apitoken|authorize> sets api/channel info in config file and sends/recieves messages in gitter
<send|show|read|mark>
Expand Down
31 changes: 18 additions & 13 deletions modules/resolution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ function resolution() {
fi
done
if [ $available == 1 ]; then
set_config_var hdmi_force_hotplug 1 $config
set_config_var hdmi_group $group $config
set_config_var hdmi_mode $mode $config
echo "Screen resolution set to $set_resolution"
reboot_needed
echo "reboot needed to see the changes"
set_config_var hdmi_force_hotplug 1 $config
set_config_var hdmi_group $group $config
set_config_var hdmi_mode $mode $config
echo "Screen resolution set to $set_resolution"
reboot_needed
echo "reboot needed to see the changes"
else
echo "mode is not available Possible modes are:"
tvservice -m DMT
fi
echo "mode is not available Possible modes are:"
tvservice -m DMT
fi
else
echo "hdmi group should be either cea or dmt"
fi
Expand Down Expand Up @@ -88,11 +88,16 @@ function resolution_help {
echo
echo "screen resolution set to the specified hdmi_group and hdmi_mode"
echo
echo "mode number support will vary on the attached display device"
echo
echo "Example:"
echo " $BASENAME resolution cea 1"
echo " System will set the resolution to CEA 640X480"
echo " $BASENAME resolution cea"
echo " System will provide all possible modes for the group cea"
echo
echo " $BASENAME resolution cea 4"
echo " System will set the resolution to CEA 1280x720 (resolution may vary)"
echo
echo " $BASENAME resolution dmt 9"
echo " System will set the resolution to DMT 800X600"
echo " $BASENAME resolution dmt 4"
echo " System will set the resolution to DMT 640x480 (resolution may vary)"
echo
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.17",
"version": "1.25.18",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit a99246b

Please sign in to comment.