Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
810 stars 187 forks source link

Hardware Error mce (solved) + pwrbttn shutdown + xfwm4 kiosk mode #669

Closed LittleITworld closed 3 years ago

LittleITworld commented 3 years ago

Hello again!

I was building my Image and everytime after loading the required files there is a black screen with the following error: "mce: Hardware Error: CPU 0: Machine Check: 0 Bank 6: ae00000000801136" (the same goes for bank 7, 9, 10 and 11) "mce: Hardware Error: TSC 0 ADDR 8b445140 MISC 3040000086" "mce: Hardware Error: CPU 0: PROCESSOR 0:906ea TIME 1629376472 SOCKET 0 APIC 0 microcode ca" it continues to boot afterwards but I was wondering how to fix it.

Hardware used: Fujitsu G558 TCS4 (Intel i5) Hardware and modules generated with hwlister.sh (same error occurs with allmodules)

Thinstation commented 3 years ago

You could try removing any modules from your machine profile that have "mce" in the name, but that would only get rid of the error message, not the error. There is probably something wrong with the hardware. Either overheating or bad memory or bad cache.

LittleITworld commented 3 years ago

There arent any modules with mce in name: module snd-hda-codec-hdmi module snd-hda-codec-realtek module snd-hda-codec-generic module ledtrig-audio module i915 module snd-soc-skl module snd-soc-sst-ipc module snd-soc-sst-dsp module snd-soc-acpi-intel-match module snd-soc-acpi module snd-soc-core module snd-compress module i2c-algo-bit module ac97_bus module snd-pcm-dmaengine module drm_kms_helper module snd-hda-intel module snd-intel-dspcfg module cec module ahci module iTCO_wdt module iTCO_vendor_support module libahci module x86_pkg_temp_thermal module intel_powerclamp module snd-hda-codec module coretemp module crct10dif-pclmul module snd-hda-core module snd-hwdep module crc32-pclmul module snd-pcm module crc32c-intel module joydev module libata module nvme module snd-timer module ghash-clmulni-intel module mei-me module r8169 module nvme-core module snd module i2c-i801 module i2c-smbus module soundcore module drm module scsi_mod module realtek module t10-pi module mei module wmi module intel-gtt module intel_pch_thermal module fujitsu-laptop module sparse-keymap

Hardware is fine as well :/

LittleITworld commented 3 years ago

Ive updated bios and now the error is gone. Ive got another question. Is it possible to force freerdp session without seeing xfwm session beforehand? when I boot my image, for some seconds I see the desktop and then it connects to my terminal server.

LittleITworld commented 3 years ago

I would also like to know how I can shutdown the ts client via powerbutton. Is there a setting I need to specify?

Thinstation commented 3 years ago

Now that you have reset the bios, try making a new machine profile. I don’t see any acpi modules, so that feature may have been disabled when you made your original.

XFWM_KIOSK=true or XFWM4_KIOSK=true Can’t remember which

On Thu, Sep 9, 2021 at 3:42 AM LittleITworld @.***> wrote:

I would also like to know how I can shutdown the ts client via powerbutton. Is there a setting I need to specify?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/669#issuecomment-915971730, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47XN7CIT63CB2QRNYLTUBCFQPANCNFSM5DUHDSDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

LittleITworld commented 3 years ago

Ive got module snd-soc-acpi and module snd-soc-acpi-intel-match in my new module list. Ive put the new one into my config and set param acpisupport to enable (it was disabled before). My session still stays if I press the powerbutton and I also couldnt see any settings in my bios but it does power off in my generate module image.

LittleITworld commented 3 years ago

Ive put XFWM4_KIOSK=true in my config, but it does take a long time to connect to my terminal server. It also does take a while doing the auto-reconnect.

Thinstation commented 3 years ago

The long start time might be a bug in xfwm, as all XFWM4_KIOSK does is disable the right click menu and panels. I didn't experience long reconnect times.

LittleITworld commented 3 years ago

Is there a list for all parameters like XFWM4_KIOSK? I havent seen a lot in the example config nor when I was searching for it.

LittleITworld commented 3 years ago

The long start time might be a bug in xfwm, as all XFWM4_KIOSK does is disable the right click menu and panels. I didn't experience long reconnect times.

Ive tried it again, without kiosk=true my session is starting normally and when Iam putting it back into my config, its taking a long time before connecting only showing cursor beforehand. So is there any fix or some other way? also do you have any other ideas for acpi?

Thinstation commented 3 years ago

You can find a help document here. https://github.com/Thinstation/thinstation/blob/6.2-Stable/ts/build/packages/xfwm4/build/conf/41xfwm4 The code for xfwm4 that joins it ThinStation is here. https://github.com/Thinstation/thinstation/blob/6.2-Stable/ts/build/packages/xfwm4/build/extra/etc/xfwm4.functions

You could try resetting the bios to defaults, then use an allmodules/allfirmware build and see if acpi poweroff works.

LittleITworld commented 3 years ago

Thank you 👍🏼

Ive tried it but without success, the thing is, it is working with the old thinstation image and with a windows image. Ive also tried to exclude one of my session and there its working as well. It might be because of my two sessions? but I need xfwm to mount usb devices.

Doncuppjr commented 3 years ago

I actually did a little polishing on the FreeRDP build. You should be able to use drives without udisks or xfwm4. https://github.com/Thinstation/thinstation/tree/6.2-Stable/ts/build/conf/freerdp

LittleITworld commented 3 years ago

I actually did a little polishing on the FreeRDP build. You should be able to use drives without udisks or xfwm4. https://github.com/Thinstation/thinstation/tree/6.2-Stable/ts/build/conf/freerdp

Ive updated my devstation and now my config isnt working anymore. It doesnt connect with freerdp. Ive added xfwm4 to see why exactly and apprently its asking for a password value now. Ive used GETUSER=off since ive had the same issue before with username. I need freerdp to connect with our server without asking for input (it should connect to the server so that users can enter their username and password for windows).

Ive also tried it without /u /p as options and without getuser and pass but then I receive a prompt asking for username and password from freerdp (when I enter credentials it doesnt show my usb device)

My Config looks like this:

AUDIO_LEVEL=90 MIC_LEVEL=90 ALWAYS_ENTER_SERVER=off ALLOW_EXIT=off RECONNECT_PROMPT=force RANDOM_WAIT=0 CUSTOM_CONFIG=on WORKSPACE=1 SESSION_0_TITLE="classroom" SESSION_0_TYPE=freerdp FREERDP_GETUSER=off FREERDP_DIALOG=on SESSION_0_FREERDP_SERVER=IPADDRESS SESSION_0_FREERDP_OPTIONS="/cert-ignore -sec-nla /d:HLAFL /bpp:32 /rfx /gfx:AVC444 /sound:sys:pulse +auto-reconnect-max-retries:0 +heartbeat +fonts /drives /u: /p: " SESSION_0_FREERDP_PASS_ENABLE=true SESSION_0_AUTOSTART=on NO_SESSION=POWEROFF SCREEN_BLANK_TIME=0 SCREEN_STANDBY_TIME=0 SCREEN_SUSPEND_TIME=0 SCREEN_OFF_TIME=0 NET_USE=BOTH NET_USE_DHCP=on NETHOSTNAME=ts* NET_TELNETD_ENABLED=on TIME_ZONE=Europe/Berlin NET_TIME_SERVER=de.pool.ntp.org NET_REMOTE_ACCESS_FROM="0.0.0.0" TFTP_BLOCKSIZE=1024

Thinstation commented 3 years ago

I think that is the name of the file to delete, not a .conf option. freerdp.getuser and .getpass in etc/cmd

On Wed, Sep 15, 2021 at 2:29 AM LittleITworld @.***> wrote:

I actually did a little polishing on the FreeRDP build. You should be able to use drives without udisks or xfwm4. https://github.com/Thinstation/thinstation/tree/6.2-Stable/ts/build/conf/freerdp

Ive updated my devstation and now my config isnt working anymore. It doesnt connect with freerdp. Ive added xfwm4 to see why exactly and apprently its asking for a password value now. Ive used GETUSER=off since ive had the same issue before with username. I need freerdp to connect with our server without asking for input (it should connect to the server so that users can enter their username and password for windows).

My Config looks like this:

AUDIO_LEVEL=90 MIC_LEVEL=90 ALWAYS_ENTER_SERVER=off ALLOW_EXIT=off RECONNECT_PROMPT=force RANDOM_WAIT=0 CUSTOM_CONFIG=on WORKSPACE=1 SESSION_0_TITLE="classroom" SESSION_0_TYPE=freerdp FREERDP_GETUSER=off FREERDP_DIALOG=on SESSION_0_FREERDP_SERVER=IPADDRESS SESSION_0_FREERDP_OPTIONS="/cert-ignore -sec-nla /d:HLAFL /bpp:32 /rfx /gfx:AVC444 /sound:sys:pulse +auto-reconnect-max-retries:0 +heartbeat +fonts /drives /u: /p: " SESSION_0_FREERDP_PASS_ENABLE=true SESSION_0_AUTOSTART=on NO_SESSION=POWEROFF SCREEN_BLANK_TIME=0 SCREEN_STANDBY_TIME=0 SCREEN_SUSPEND_TIME=0 SCREEN_OFF_TIME=0 NET_USE=BOTH NET_USE_DHCP=on NETHOSTNAME=ts* NET_TELNETD_ENABLED=on TIME_ZONE=Europe/Berlin NET_TIME_SERVER=de.pool.ntp.org NET_REMOTE_ACCESS_FROM="0.0.0.0" TFTP_BLOCKSIZE=1024

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/669#issuecomment-919855537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47XMRNTECVJAWE5O3RLUCBRN5ANCNFSM5DUHDSDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

LittleITworld commented 3 years ago

I think that is the name of the file to delete, not a .conf option. freerdp.getuser and .getpass in etc/cmd On Wed, Sep 15, 2021 at 2:29 AM LittleITworld @.**> wrote: I actually did a little polishing on the FreeRDP build. You should be able to use drives without udisks or xfwm4. https://github.com/Thinstation/thinstation/tree/6.2-Stable/ts/build/conf/freerdp Ive updated my devstation and now my config isnt working anymore. It doesnt connect with freerdp. Ive added xfwm4 to see why exactly and apprently its asking for a password value now. Ive used GETUSER=off since ive had the same issue before with username. I need freerdp to connect with our server without asking for input (it should connect to the server so that users can enter their username and password for windows). My Config looks like this: AUDIO_LEVEL=90 MIC_LEVEL=90 ALWAYS_ENTER_SERVER=off ALLOW_EXIT=off RECONNECT_PROMPT=force RANDOM_WAIT=0 CUSTOM_CONFIG=on WORKSPACE=1 SESSION_0_TITLE="classroom" SESSION_0_TYPE=freerdp FREERDP_GETUSER=off FREERDP_DIALOG=on SESSION_0_FREERDP_SERVER=IPADDRESS SESSION_0_FREERDP_OPTIONS="/cert-ignore -sec-nla /d:HLAFL /bpp:32 /rfx /gfx:AVC444 /sound:sys:pulse +auto-reconnect-max-retries:0 +heartbeat +fonts /drives /u: /p: " SESSION_0_FREERDP_PASS_ENABLE=true SESSION_0_AUTOSTART=on NO_SESSION=POWEROFF SCREEN_BLANK_TIME=0 SCREEN_STANDBY_TIME=0 SCREEN_SUSPEND_TIME=0 SCREEN_OFF_TIME=0 NET_USE=BOTH NET_USE_DHCP=on NETHOSTNAME=ts NET_TELNETD_ENABLED=on TIME_ZONE=Europe/Berlin NET_TIME_SERVER=de.pool.ntp.org NET_REMOTE_ACCESS_FROM="0.0.0.0" TFTP_BLOCKSIZE=1024 — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#669 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47XMRNTECVJAWE5O3RLUCBRN5ANCNFSM5DUHDSDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

But it was working with those options.

Edit: I only have ssh.getuser file (empty) nothing else and nothing with freerdp.

Thinstation commented 3 years ago

You could try SESSION_0_FREERDP_USER="The user you are going to use" SESSION_0_FREERDP_PASS_ENABLE=false These are some new options, and I am not sure if they work right. You still need to put /p:'a password' in your options

Thinstation commented 3 years ago

You set SESSION_0_FREERDP_PASS_ENABLE=true, that is why it was always asking.

LittleITworld commented 3 years ago

You set SESSION_0_FREERDP_PASS_ENABLE=true, that is why it was always asking.

Iam getting a black background with the cursor when I exclude it/set it to false. I think it was asking for a prompt because of the missing parameters "/u and /p".

LittleITworld commented 3 years ago

You could try SESSION_0_FREERDP_USER="The user you are going to use" SESSION_0_FREERDP_PASS_ENABLE=false These are some new options, and I am not sure if they work right. You still need to put /p:'a password' in your options

I need freerdp to work without giving him a username and password beforehand. It was working before I was updating my devstation. Iam confused because I can bypass the username credentials with GETUSER=off but I cant do the same with the password and since the new update he is asking for a password (freerdp didnt ask for a password, Ive left it blank) when I include xfmw4 in my session and leaving me a blackground + cursor without the xfmw4 session

Doncuppjr commented 3 years ago

It’s asking for a password because you set an option to ask for a password.

Sent from Yahoo Mail for iPhone

On Thursday, September 16, 2021, 12:09 AM, LittleITworld @.***> wrote:

You could try SESSION_0_FREERDP_USER="The user you are going to use" SESSION_0_FREERDP_PASS_ENABLE=false These are some new options, and I am not sure if they work right. You still need to put /p:'a password' in your options

I need freerdp to work without giving him a username and password beforehand. It was working before I was updating my devstation. Iam confused because I can bypass the username credentials with GETUSER=off but I cant do the same with the password and since the new update he is asking for a password (freerdp didnt ask for a password, Ive left it blank) when I include xfmw4 in my session and leaving me a blackground + cursor without the xfmw4 session

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Doncuppjr commented 3 years ago

-sec-nla requires knowledge of the username and password prior to connecting with the server. Your getting a black screen because freerdp is waiting for a password on some inaccessible terminal.

Sent from Yahoo Mail for iPhone

On Thursday, September 16, 2021, 12:02 AM, LittleITworld @.***> wrote:

You set SESSION_0_FREERDP_PASS_ENABLE=true, that is why it was always asking.

Iam getting a black background with the cursor when I exclude it/set it to false. I think it was asking for a prompt because of the missing parameters "/u and /p".

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

LittleITworld commented 3 years ago

It’s asking for a password because you set an option to ask for a password. Sent from Yahoo Mail for iPhone On Thursday, September 16, 2021, 12:09 AM, LittleITworld @.***> wrote: You could try SESSION_0_FREERDP_USER="The user you are going to use" SESSION_0_FREERDP_PASS_ENABLE=false These are some new options, and I am not sure if they work right. You still need to put /p:'a password' in your options I need freerdp to work without giving him a username and password beforehand. It was working before I was updating my devstation. Iam confused because I can bypass the username credentials with GETUSER=off but I cant do the same with the password and since the new update he is asking for a password (freerdp didnt ask for a password, Ive left it blank) when I include xfmw4 in my session and leaving me a blackground + cursor without the xfmw4 session — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

you mean "-sec-nla" ? but as mentioned I already did bypass username and password prompt... before update it was getuser=off and never asking for a password in the first place. I need the same situation now :(

Thinstation commented 3 years ago

NLA security is the default since like 2008. Freerdp must know the username and password before it can connect to server if NLA is enabled. You can either put them in options, or use the ThinStation dialogs. If you want pre2008 behavior, make sure NLA is disabled everywhere.

On Thu, Sep 16, 2021 at 3:30 AM LittleITworld @.***> wrote:

It’s asking for a password because you set an option to ask for a password. Sent from Yahoo Mail for iPhone On Thursday, September 16, 2021, 12:09 AM, LittleITworld @.***> wrote: You could try SESSION_0_FREERDP_USER="The user you are going to use" SESSION_0_FREERDP_PASS_ENABLE=false These are some new options, and I am not sure if they work right. You still need to put /p:'a password' in your options I need freerdp to work without giving him a username and password beforehand. It was working before I was updating my devstation. Iam confused because I can bypass the username credentials with GETUSER=off but I cant do the same with the password and since the new update he is asking for a password (freerdp didnt ask for a password, Ive left it blank) when I include xfmw4 in my session and leaving me a blackground + cursor without the xfmw4 session — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

you mean "-sec-nla" ? but as mentioned I already did bypass username and password prompt... before update it was getuser=off and never asking for a password in the first place. I need the same situation now :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/669#issuecomment-920781521, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47SNGQORVAME4MXUEE3UCHBLNANCNFSM5DUHDSDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

LittleITworld commented 3 years ago

It is already disabled, otherwise it wouldnt have worked before. Isnt it already disabled with the "-" as well? It was written in the documentary + = enable and - = disable

Thinstation commented 3 years ago

Nah, freerdp options are confusing. -sec-nla enables it. Try and find an option for a different security model.

On Thu, Sep 16, 2021 at 3:48 AM LittleITworld @.***> wrote:

It is already disabled, otherwise it wouldnt have worked before. Isnt it already disabled with the "-" as well? It was written in the documentary + = enable and - = disable

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/669#issuecomment-920791879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47X6Y7J32JPOR7K74K3UCHDPNANCNFSM5DUHDSDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

LittleITworld commented 3 years ago

thinstation.conf.zip

it was written in thinstation example config: "FREERDP_NLA=off # OFF is adding -sec-nla" & "# -sec-nla Disable NLA protocol security"

Thinstation commented 3 years ago

Then the example is wrong

On Thu, Sep 16, 2021 at 3:59 AM LittleITworld @.***> wrote:

thinstation.conf.zip https://github.com/Thinstation/thinstation/files/7177125/thinstation.conf.zip

it was written in thinstation example config: "FREERDP_NLA=off # OFF is adding -sec-nla" & "# -sec-nla Disable NLA protocol security"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/669#issuecomment-920798898, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47XHTTVFXWTCW342T2DUCHE2JANCNFSM5DUHDSDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

LittleITworld commented 3 years ago

Still doesnt explain why my image was working fine with 2 different problems yesterday. I havent changed anything in my configs and only updated my repository...

Thinstation commented 3 years ago

/sec:rdp

Thinstation commented 3 years ago

I think it was a variable collision. Should be fixed now.

LittleITworld commented 3 years ago

So after Ive reinstalled my devstation and tried default config with success, I went back to my orginal image. I really needed "SESSION_0_FREERDP_PASS_ENABLE=false and FREERDP_GETUSER=off" to skip username and password requirement. And its also working again with "-sec-nla" (it seems that it didnt really matter what Iam using there). But I have two issues now:

1.) My usb device isnt shared in my rdp session and its included with /drives as well as the required modules for filesystem support (exfat, ntfs, usb-storage)

2.) When my client connects to the terminal server, the config puts domain\root into windows username field.

To make my config work again, I only had to delete /u: and /p: from freerdp options. When I put them back, there is no way I can connect to our server since it only tells me "press yes to reconnect" even when I put a username and password in it. I also tried it with xfwm4 and there I couldnt enter username and password because the option was missing in the window.

LittleITworld commented 3 years ago

config.zip

Thinstation commented 3 years ago

1. USB_STORAGE_SYNC=on BASE_MOUNT_PATH=/media USB_MOUNT_DIR="."

  1. your passing /d:domain, and FreeRDP is grabbing the username from the env. Maybe there is an option to FreeRDP to suppress that, but /sec:rdp is very insecure, seriously, why are doing this?
Thinstation commented 3 years ago

and it's +drives not /drives or you could use /drive:hotplug,*

LittleITworld commented 3 years ago

All of my problems are solved now, thank you!