Re: [qubes-users] best and less expensive Lenovo think pad

2019-08-14 Thread brendan . hoar
On Wednesday, August 14, 2019 at 7:53:38 PM UTC-4, 799 wrote:
>
> Hello Brendan,
> > schrieb am Do., 15. Aug. 2019, 01:26:
>
>> (...)
>>
>> 1. That first USB device, which does not state where it can be used is 
>> either:
>> a) The USB 2.0 interface "available" via the expresscard interface (some 
>> "expresscard" devices are really just USB 2.0 devices).
>> b) The USB 2.0 interface available via the docking connector.
>>
>> ...some experimentation should lead to clarification.
>>
>
> You are very likely right, I have always asked myself why there is an USB 
> Controller which has no internal devices attached and doesn't connect to 
> any of the external USB slots. I have a docking station, so I will test 
> this.
>

Cool, let us know.
 

> 2. On my W520, I typically only attach the USB 2.0 controller to sys-usb 
>> (via PCI). That way, if I have to directly attach a storage device to a VM 
>> for IO-intensive uses, I can utilize a disposable HVM and attach the USB 
>> 3.0 controller directly to it.
>>
>
> The problem is, that the USB 3 Controller on the X230 has also the 
> internal WWAN Card connected, so of I attach it to an AppVM and not the 
> sys-usb Qube I am not able to pass the WWAN Card to my sys-net VM and use 
> LTE, which I need to rely on.
>

Ok, that's unfortunate. I keep an mSATA drive in that slot in my X230 units 
(and in the equivalent slot in the W520 units).

In any case, with the W520, I don't think the built-in USB 3.0 controller 
is connected to anything except for the two left-side ports, but I could be 
wrong. The docking connector on the W520 only supports up to USB 2.0, while 
USB 3.0 via docks is supported in the X230/Tx30/W530 models. All my docks 
have the eSATA port in the spot the later revisions placed the USB 3.0 
port. [Dock storage support may also explain a phantom /dev/sd? device you 
see from time to time in Thinkpads.]

3. Lastly, for those worried about having a flexible USB controller PCI 
>> layout (the ability to assign different controllers to different HVMs), 
>> there's a secret I'll share: the expresscard port on both the X230 and the 
>> W520 is a PCI port! And there are expresscards that provide USB 3.0 ports! 
>> Granted expresscard's maximum signaling rate of 2500Mbps is not quite 
>> 6000Mbps maximum of USB 3.0...but definitely faster than 480Mbps! The W520 
>> puts PCI devices mounted via the expresscard slot in their own grouping 
>> (e.g. a USB 3.0 expresscard)...again, experimentation will show whether the 
>> X230 does as well.
>>
>
> Ok, I'll give the Expresscard Slot a try, need to buy an adapter first...
>
> Any idea how I can test the speed of the interfaces afterwards?
> I would get a Expresscard-to-USB3-Adapter.
>

I would use the poor(-ish) man's throughput tester: 'time dd if=/dev/..." 
reads of a contemporary fast SSD connected via a USB 3->SATA III bridge 
that supports UAS.  Time trial A with the cable connected to the built-in 
USB 3.0 controller attached to an HVM, then trial B with the cable 
connected to the expresscard-USB3 "controller" attached to an HVM. Trial C 
with one of the USB 2.0 ports if you want.

Based on the advertised rates, I'd expect IO up to about 550MBps on the 
internal USB 3.0 ports,  220MBps on the express card USB 3.0 ports (due to 
intervening 1 x lane pcie 1.0) and 40MBps on the internal USB 2.0 ports.

I bought the cheapest expresscard adapter I could find on amazon, now 
currently listed as unavailable: 
https://www.amazon.com/gp/product/B07Q819QTF

It is recognized by dom0 (see below) but I haven't hooked it up yet.. I 
will note that I'll probably need to file down some of the plastic, it 
seems slightly too big for the slot when inserting it (again, it was cheap):

[admin@dom0 ~]$ lspci|grep USB
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset 
Family USB Enhanced Host Controller #2 (rev 04)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset 
Family USB Enhanced Host Controller #1 (rev 04)
05:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host 
Controller (rev 02)
*** 0e:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host 
Controller (rev 04) ***

Lastly a minor warning: it's really easy to pull out the expresscard when 
removing a USB cable, just FYI.

B

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/de61d7a1-59d8-4101-a21e-94dd92aee666%40googlegroups.com.


[qubes-users] Asus Keyboard Backlight Not Working

2019-08-14 Thread adiaz1337
I just bought an Asus Zenbook 3 and was able to successfully install Qubes. 
Really enjoying it so far. I'm having trouble getting the keyboard 
backlight to work.  I tried xset commands, configurations in xfce, and even 
tried to turn it on manually via the asus::kbd_backlight configuration 
folder. Unfortunately, that folder does not exist.  Does anyone have any 
ideas what else I can try?

I'd like to get the FN+F3 and FN+F4 shortcuts to work, but I"ll settle for 
jsut turning the LEDs on. I am often working in dark rooms and if I can't 
figure it out I'll probably end up switching distributions, which I really 
don't want to do. I really like Qubes so far.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/d9e55d62-6925-44db-b18c-e798d3f33ae2%40googlegroups.com.


Re: [qubes-users] best and less expensive Lenovo think pad

2019-08-14 Thread 799
Hello Brendan,

 schrieb am Do., 15. Aug. 2019, 01:26:

> (...)
>
> 1. That first USB device, which does not state where it can be used is
> either:
> a) The USB 2.0 interface "available" via the expresscard interface (some
> "expresscard" devices are really just USB 2.0 devices).
> b) The USB 2.0 interface available via the docking connector.
>
> ...some experimentation should lead to clarification.
>

You are very likely right, I have always asked myself why there is an USB
Controller which has no internal devices attached and doesn't connect to
any of the external USB slots.
I have a docking station, so I will test this.


2. On my W520, I typically only attach the USB 2.0 controller to sys-usb
> (via PCI). That way, if I have to directly attach a storage device to a VM
> for IO-intensive uses, I can utilize a disposable HVM and attach the USB
> 3.0 controller directly to it.
>

The problem is, that the USB 3 Controller on the X230 has also the internal
WWAN Card connected, so of I attach it to an AppVM and not the sys-usb Qube
I am not able to pass the WWAN Card to my sys-net VM and use LTE, which I
need to rely on.

USB 3.0 Controller - Extended Host Controller Interface (xHCI)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset
Family USB xHCI Host Controller (rev 04)

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 0bdb:1926 Ericsson Business Mobile Networks BV 1 =
LTE/WAN-Card
connects to: Left USB-Port (next to VGA-Display-Out)
connects to: Left USB-Port (next Mini-DisplayPort-Out)


3. Lastly, for those worried about having a flexible USB controller PCI
> layout (the ability to assign different controllers to different HVMs),
> there's a secret I'll share: the expresscard port on both the X230 and the
> W520 is a PCI port! And there are expresscards that provide USB 3.0 ports!
> Granted expresscard's maximum signaling rate of 2500Mbps is not quite
> 6000Mbps maximum of USB 3.0...but definitely faster than 480Mbps! The W520
> puts PCI devices mounted via the expresscard slot in their own grouping
> (e.g. a USB 3.0 expresscard)...again, experimentation will show whether the
> X230 does as well.
>

Ok, I'll give the Expresscard Slot a try, need to buy an adapter first...

Any idea how I can test the speed of the interfaces afterwards?
I would get a Expresscard-to-USB3-Adapter.

[799]

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAJ3yz2sksFnL4Jr8mBgRFHYcwVXSSMtGEiGkxngdG7ykZt7DNg%40mail.gmail.com.


Re: [qubes-users] best and less expensive Lenovo think pad

2019-08-14 Thread brendan . hoar
On Tuesday, August 13, 2019 at 3:54:58 PM UTC-4, 799 wrote:

> I have documented the Layout of the USB controllers here:
>
> https://github.com/one7two99/my-qubes/blob/master/docs/qubes-x230.md
>
> It shows which USB Controllers connects to which external USB Port and 
> which internal USB Devices like Camera / Bluetooth / LTE-Card belongs to 
> which USB Controller.
>
> Depending on which USB Controller you attach to a VM, you pass along all 
> attached internal USB Devices.
> Therefore I am a using a sys-usb Qube ;-)
>
> Regarding the other questions, I'll try to answer this later.
>
 
799,

1. That first USB device, which does not state where it can be used is 
either:
a) The USB 2.0 interface "available" via the expresscard interface (some 
"expresscard" devices are really just USB 2.0 devices).
b) The USB 2.0 interface available via the docking connector.

...some experimentation should lead to clarification.

2. On my W520, I typically only attach the USB 2.0 controller to sys-usb 
(via PCI). That way, if I have to directly attach a storage device to a VM 
for IO-intensive uses, I can utilize a disposable HVM and attach the USB 
3.0 controller directly to it.

3. Lastly, for those worried about having a flexible USB controller PCI 
layout (the ability to assign different controllers to different HVMs), 
there's a secret I'll share: the expresscard port on both the X230 and the 
W520 is a PCI port! And there are expresscards that provide USB 3.0 ports! 
Granted expresscard's maximum signaling rate of 2500Mbps is not quite 
6000Mbps maximum of USB 3.0...but definitely faster than 480Mbps! The W520 
puts PCI devices mounted via the expresscard slot in their own grouping 
(e.g. a USB 3.0 expresscard)...again, experimentation will show whether the 
X230 does as well.

B

Brendan



-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/39bf1576-f8fc-4720-839c-9c0203d7098c%40googlegroups.com.


[qubes-users] Problem with NextCloud-Client App-VM (unable to login on 2nd boot)

2019-08-14 Thread one7two99
Hello,

I want to use a dedicated AppVM to sync data to a private NextCloud-Server.

I have setup a dedicated template for this, which is based on
fedore-30-minimal (as all my other templates).

Configuration of the template and the AppVM was straight forward and I
was able to make an initial sync.

But after I have restarted my NextCloud-Client AppVM I'm asked for
credentials again and even if login again, the sync doesn't start.

I've also tried to use a NextCloud AppToken for my user, but this had
the same effect.

Can someone explain why I the login/sync fails after rebooting the AppVM?

This are the steps to build a NextCloud-Client-Template and an AppVM
based on this template.

All steps have to be run from dom0:


 start 

Template=fedora-30-minimal
TemplateName=t-fedora-30-storage

# Remove an existing template
if [ -d /var/lib/qubes/vm-templates/$TemplateName ];
   then qvm-kill $TemplateName;
   qvm-remove --force $TemplateName;
fi

qvm-clone $Template $TemplateName

qvm-run --auto --pass-io --no-gui --user root $TemplateName \
  'dnf -y update'

# mandatory: install Nextcloud + Qubes Basics
qvm-run --auto --pass-io --no-gui --user root $TemplateName \
  'dnf -y install nextcloud-client nautilus qubes-core-agent-nautilus \
   qubes-usb-proxy mlocate qubes-core-agent-networking'

# optional: Some more usefull tools
qvm-run --auto --pass-io --no-gui --user root $TemplateName \
  'dnf -y install nano mc less unzip'

# optional: Nice(r) (Gnome-)Terminal
qvm-run --auto --pass-io --no-gui --user root $TemplateName \
  'dnf -y install gnome-terminal qubes-usb-proxy terminus-fonts \
   dejavu-sans-fonts dejavu-sans-mono-fonts'

qvm-shutdown $TemplateName

qvm-create --template=$TemplateName --label=blue my-nextcloud

# add Nextcloud-Sync-Client to Qubes Menu
# Login/Configure Nextcloud-Client (you need to login via Browser, this
can be done in another AppVM)
# Hint: Add an App-Password/Token

- end 


Thanks for your help.

[799]

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/9020dc07-f266-6d61-6ca4-0efe9b54dfd7%40gmail.com.


pEpkey.asc
Description: application/pgp-keys


Re: [qubes-users] USB keyboard won't work in app VM in spite of being attached and recognised.

2019-08-14 Thread unman
On Tue, Aug 13, 2019 at 07:31:50PM +0100, Eternal Questioner wrote:
> Hi All,
> 
> I was wondering whether anyone might have had a similar issue.
> 
> Background:
> 
> 
>- sys-usb sys VM is installed and functional.
>- Hewlett Packard keyboard can be seen in the results of qvm-usb.
>- Keyboard has been attached to the app VM with qvm-usb.
>- Keyboard can be seen as device 002 on bus 002 in the app VM:
> 
> [user@testvm ~]$ lsusb
> Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 002 Device 002: ID 03f0:2b4a Hewlett-Packard
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> [user@testvm ~]$
> 
> Typing on the keyboard produces no output though.  The keyboard works in
> other computers.  I tried changing the virt_type from PVM to HVM with no
> change in results.
> 
> All constructive ideas welcome.
> 
> 
> Thanks.
> 
> EQ
> 

Dont have this problem.
Works as expected with a few  keyboards (not HP)
What template are you using in testvm and in sys-usb?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20190814132500.GA23993%40thirdeyesecurity.org.