Ilya114 / Box64Droid

Running x86_64 applications on Android
GNU General Public License v3.0
833 stars 65 forks source link

Chroot Linux with xfce4 fails to get hardware accel on second run (works ok first run) With solution to problem #76

Closed Dr4kzor closed 1 year ago

Dr4kzor commented 1 year ago

This is only for users running the Root version

Run box64droid in terminal mode (option 9) apt install xfce4

if you cannot install, you need to fix your apt update issues: problem with /etc/passwd (_apt line needs to be edited, change the number 665574 or whatever you have for 3003 and leave the rest intact) problem with /tmp/ permissions (chmod 777 /tmp/ ) Or read here Fixing apt update

Now you should have xfce4 installed, to run simply execute xfce4-session and you should see an output on termux-x11.

Now to start the low fps problem close everything and restart xfce4, notice that now at the top left corner of the screen you can see fps values, this means we are running the xfce4 with incorrect configs (auto created after first sucessfull hardware accell run)

To fix this low fps issue we need to edit the created xfce4 config file.

Edit the file ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml nano ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml

locate the line:

<property name="use_compositing" type="bool" value="true"/>

and change the value to false:

<property name="use_compositing" type="bool" value="false"/>

to save changes press Ctrl+x and y

now you can exit and restart chroot. We have now fixed the problem with the Harware Acceleration on every startup of Linux Now to run Linux UI with hardware accel simply run start xfce4-session!

Smartphone (please complete the following information):

Ilya114 commented 1 year ago

Which line exactly?

Dr4kzor commented 1 year ago

Sry the line code was not displaying properly, it now shows its <property name="use_compositing" type="bool" value="true"/> chage it to false.

Ilya114 commented 1 year ago

I also fixed tmp

Ilya114 commented 1 year ago

Closing due a not active