feat: remove references to graphic switching

This commit is contained in:
Denis Benato
2026-01-13 23:53:23 +01:00
parent 20cbddb6fa
commit be17e0b388
2 changed files with 0 additions and 18 deletions

View File

@@ -44,7 +44,6 @@ pub enum CliCommand {
AuraPower(LedPowerCommand2), AuraPower(LedPowerCommand2),
Profile(ProfileCommand), Profile(ProfileCommand),
FanCurve(FanCurveCommand), FanCurve(FanCurveCommand),
Graphics(GraphicsCommand),
Anime(AnimeCommand), Anime(AnimeCommand),
Slash(SlashCommand), Slash(SlashCommand),
Scsi(ScsiCommand), Scsi(ScsiCommand),
@@ -95,14 +94,6 @@ pub struct LedModeCommand {
pub command: Option<SetAuraBuiltin>, pub command: Option<SetAuraBuiltin>,
} }
#[derive(FromArgs, Debug, Default)]
#[argh(
subcommand,
name = "graphics",
description = "graphics command (deprecated)"
)]
pub struct GraphicsCommand {}
#[derive(FromArgs, Debug, Default)] #[derive(FromArgs, Debug, Default)]
#[argh( #[argh(
subcommand, subcommand,

View File

@@ -203,7 +203,6 @@ fn do_parsed(
Some(CliCommand::FanCurve(cmd)) => { Some(CliCommand::FanCurve(cmd)) => {
handle_fan_curve(&conn, cmd)?; handle_fan_curve(&conn, cmd)?;
} }
Some(CliCommand::Graphics(_)) => do_gfx(),
Some(CliCommand::Anime(cmd)) => handle_anime(cmd)?, Some(CliCommand::Anime(cmd)) => handle_anime(cmd)?,
Some(CliCommand::Slash(cmd)) => handle_slash(cmd)?, Some(CliCommand::Slash(cmd)) => handle_slash(cmd)?,
Some(CliCommand::Scsi(cmd)) => handle_scsi(cmd)?, Some(CliCommand::Scsi(cmd)) => handle_scsi(cmd)?,
@@ -294,14 +293,6 @@ fn do_parsed(
Ok(()) Ok(())
} }
fn do_gfx() {
println!(
"Please use supergfxctl for graphics switching. supergfxctl is the result of making \
asusctl graphics switching generic so all laptops can use it"
);
println!("This command will be removed in future");
}
fn handle_backlight(cmd: &BacklightCommand) -> Result<(), Box<dyn std::error::Error>> { fn handle_backlight(cmd: &BacklightCommand) -> Result<(), Box<dyn std::error::Error>> {
if cmd.screenpad_brightness.is_none() if cmd.screenpad_brightness.is_none()
&& cmd.screenpad_gamma.is_none() && cmd.screenpad_gamma.is_none()