mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-06 06:30:27 -04:00
inputplumber: Use deck-uhid
instead of deck
This commit is contained in:
parent
a200d42450
commit
b26cc0f45c
1 changed files with 7 additions and 7 deletions
|
@ -55,9 +55,9 @@ impl DeckService {
|
||||||
async fn check_devices(&self, object_manager: &ObjectManagerProxy<'_>) -> Result<()> {
|
async fn check_devices(&self, object_manager: &ObjectManagerProxy<'_>) -> Result<()> {
|
||||||
if device_type().await.unwrap_or(DeviceType::Unknown) == DeviceType::LegionGoS {
|
if device_type().await.unwrap_or(DeviceType::Unknown) == DeviceType::LegionGoS {
|
||||||
// There is a bug on the Legion Go S where querying this information
|
// There is a bug on the Legion Go S where querying this information
|
||||||
// messes up the mapping for the `deck` target device. It's not clear
|
// messes up the mapping for the `deck-uhid` target device. It's not
|
||||||
// exactly what's causing this, so we just skip on the Legion Go S
|
// clear exactly what's causing this, so we just skip on the Legion
|
||||||
// since it makes a `deck` target device by default.
|
// Go S since it makes a `deck-uhid` target device by default.
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
for (path, ifaces) in object_manager.get_managed_objects().await?.into_iter() {
|
for (path, ifaces) in object_manager.get_managed_objects().await?.into_iter() {
|
||||||
|
@ -90,7 +90,7 @@ impl DeckService {
|
||||||
.path(targets[0].as_str())?
|
.path(targets[0].as_str())?
|
||||||
.build()
|
.build()
|
||||||
.await?;
|
.await?;
|
||||||
Ok(target.device_type().await? == "deck")
|
Ok(target.device_type().await? == "deck-uhid")
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn make_deck(&self, path: &ObjectPath<'_>) -> Result<()> {
|
async fn make_deck(&self, path: &ObjectPath<'_>) -> Result<()> {
|
||||||
|
@ -105,10 +105,10 @@ impl DeckService {
|
||||||
.build()
|
.build()
|
||||||
.await?;
|
.await?;
|
||||||
if !self.is_deck(&proxy).await? {
|
if !self.is_deck(&proxy).await? {
|
||||||
debug!("Changing CompositeDevice {} into `deck` type", path);
|
debug!("Changing CompositeDevice {} into `deck-uhid` type", path);
|
||||||
proxy.set_target_devices(&["deck"]).await
|
proxy.set_target_devices(&["deck-uhid"]).await
|
||||||
} else {
|
} else {
|
||||||
debug!("CompositeDevice {} is already `deck` type", path);
|
debug!("CompositeDevice {} is already `deck-uhid` type", path);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue