Skip to content

Commit

Permalink
Legion Go and Ally use the same GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Pogogo007 committed May 20, 2024
1 parent 13d56c5 commit 92f4d9e
Showing 1 changed file with 6 additions and 43 deletions.
49 changes: 6 additions & 43 deletions profiles/pci/handhelds/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ASUS Rog Ally APU
#CLASSIDS=0300
#VENDORIDS=1002
#DEVICEIDS=
#DEVICEIDS=15bf

#Lenovo Legion GO APU
#CLASSIDS=0300
Expand Down Expand Up @@ -47,53 +47,16 @@ post_remove = """
sed -i 's/${kernelparams}/' /etc/sdboot-manage.conf
"""

[rog-ally]
desc = "ASUS ROG Ally"
nonfree = false
class_ids= "0300"
vendor_ids="1002"
device_ids = ""
priority = 1
packages = "hhd hhd-ui jupiter-hw-support"
post_install = """
echo "ASUS ROG Ally chwd installing..."
username=$(id -nu 1000)
services=("steam-powerbuttond" "hhd@${username}")
maskservices=("jupiter-fan-control" "jupiter-bios-update" "jupiter-controller-update")
echo "Enabling services..."
for service in ${services[@]}; do
systemctl enable --now "${service}.service"
done
echo "Masking potentially conflicting services"
for mask in ${maskservices[@]}; do
systemctl mask "${mask}.service"
done
"""
post_remove = """
echo "ASUS ROG Ally chwd removing..."
username=$(id -nu 1000)
services=("steam-powerbuttond" "hhd@${username}")
maskservices=("jupiter-fan-control" "jupiter-bios-update" "jupiter-controller-update")
echo 'Disabling services...'
for service in ${services[@]}; do
systemctl disable "${service}.service"
done
echo "Unmasking potentially conflicting services"
for mask in ${maskservices[@]}; do
systemctl unmask "${mask}.service"
done
"""

[legion-go]
desc = "Lenovo Legion GO"
[phoenix]
desc = "ASUS ROG Ally and Lenovo Legion Go"
nonfree = false
class_ids= "0300"
vendor_ids="1002"
device_ids = "15bf"
priority = 1
packages = "hhd hhd-ui jupiter-hw-support"
post_install = """
echo "Lenovo Legion GO chwd installing..."
echo "Ally and Legion chwd installing..."
username=$(id -nu 1000)
services=("steam-powerbuttond" "hhd@${username}")
maskservices=("jupiter-fan-control" "jupiter-bios-update" "jupiter-controller-update")
Expand All @@ -107,7 +70,7 @@ post_install = """
done
"""
post_remove = """
echo "Lenovo Legion Go chwd removing..."
echo "Ally and Legion chwd removing..."
username=$(id -nu 1000)
services=("steam-powerbuttond" "hhd@${username}")
maskservices=("jupiter-fan-control" "jupiter-bios-update" "jupiter-controller-update")
Expand All @@ -119,4 +82,4 @@ post_remove = """
for mask in ${maskservices[@]}; do
systemctl unmask "${mask}.service"
done
"""
"""

0 comments on commit 92f4d9e

Please sign in to comment.