Showing posts with label samsung. Show all posts
Showing posts with label samsung. Show all posts

This Week I Learned 2018 - Week 03

Last week stuff and all the archive posts.

大水冲了龙王庙 (一家人不认一家人)。看了几套大陆片,一直听到这句歇後語(英文应该是Idiom吧?)非常适合那些说话不直截了当,话中有话的人。另外还有几句普遍的,例如:
  • 有事鍾無艷,無事夏迎春
  • 豬八戒照鏡子(裏外不是人)
  • 秀才遇到兵(有理說不清)
  • 無事獻殷勤 (非奸即盜)
  • 泥菩薩過江(自身難保)
  • 快刀斬亂麻 (乾淨俐落)

Chinese New Year is around the corner, surprisingly this year, the weather is getting colder and not warmer especially after the Dongzhi festival. Several fishes have died due to infection and we suspected that tank contamination from other fishes without quarantine and cold weather may be the root cause. Water parameters are a dead and life issue for these fishes.

All the Bettas have been quarantines and water changes done on almost daily basis. Some of them are recovering and seems more active. We have change our approach to water changes and sea salt, which are good practices to keep the fishes healthy. Unless necessary, no more chemical like Malachine Green (debatable toxicity issue, it can kill both bacteria or fishes). Methylene Blue or Formaldehyde (aka Formalin) are still safe to use. Even so, each antimicrobials have their own safety issue and met with apprehension issue in the fishing industry, especially aquaculture (fishes breed for eating). Aquarium medication is an interesting area for investigating. Expect more future discussions on this.

Overfed your fishes? Expect bloating and constipation issue to follow suit. Nothing but pea to help them with their digestion. Surprisingly these fishes crave pea. Well, pea should be on their weekly diet then.

cron.weekly is no more. It's not easy to continuously writing up and weekly aggregate posts. Definitely you're going to burn out somehow or another. I've tried different approach and the only possible way is to do it on daily basis, sit down in front of you computer for 15 minutes and write something up. Consistency is the key here, whether you like it or not.

Cal Newport have a good write-up on digital de-cluttering. Find and cultivate high-quality leisure instead of instant gratification low-quality digital distractions (news feeds, social media posts, or videos). A deliberated and strategic pause of using your mobile devices will have quite a significant effect on your daily life. What are your analog activities? These is something I need to reflect upon. For a start, rediscover what you like to do when you're young? Long forgotten hobbies? That's a good start!

Yes, I've installing and setting up my printer and scanner drivers the wrong way (using the official M2070W drivers from Samsung) for so long. There always this conflict between the printer and scanner driver everything I've upgraded my Ubuntu distro. It took me a while, but I was made aware there have been this The Samsung Unified Linux Driver Repository since 2015. Adding a repository, update, and install the necessary drivers and everything works as intended.

Timezone cheatsheet in MySQL. Timezone is always tricky and to do it correctly or explain it persuasively to layman.

Samsung M2070W WiFi Printing with TP-Link Archer C7

It took me a while to finally set this up and to my amazement, this is actually quite damn simple. While there is another way to do it, through Samsung's Printer Settings Utility, unfortunately the `` does not exists anymore in Ubuntu 16.10. Therefore, to get this to works, we have to resolve to WPS method.

There are three devices you will need to setup properly. These devices are your laptop, the router, and lastly the printer itself.

1. Install the Samsung printer driver in your Ubuntu system. You should be able to print through USB cable. See the the Samsung Unified Linux Driver Repository instructions.

2. Next is to get the network configuration details of the printer, specifically the MAC address. From the printer buttons, Menu -> 4. Network -> Network Conf. -> Print? -> Yes. Jot down the MAC address.

3. Go to the router. DHCP -> Address Reservation -> Add New. Assign the MAC address in Step 2 to a fixed IP address so we always connect to the printer using a consistent IP address. Reboot the router. If you enable MAC filtering, do remember to white list the MAC address of the printer.

4. Again, in the router, we will need to enable WPS. Go to Wirelss 2.4GHz -> WPS -> Enable WPS. You may need to reboot the router again if WPS is not enabled.

5. Continue by clicking the Add device button. There are two options to add new device. Pick the second option and click Connect.

6. Go to your printer and press the WPS button for more than 2 seconds. Wait until the printer connected to the router. Once the printer is connected, you can disable the WPS in the router. You printer now will be part of your home network and assigned an IP address.

7. In your Ubuntu installation, open the browser the connection to CUPS management site at Go to `CUPS for Administrators` -> `Adding Printers and Classes` -> `Manage Printers` -> Select the printer you've install in Step 1 -> `Administration` -> `Manage Printer`. You will be prompted for login credential. Use the same credential when you login to Ubuntu desktop environment.

We're going to use the Internet Printing Protocol (IPP). While there are many printing protocols but for convenient sake, we will pick IPP. You can obtain the IPP full address from Step 2. It looks something like `ipp://`. The IP address is set in Step 3.

8. Unplug your USB cable and print any sample test page from your laptop. If everything have been setup properly, you should be able to print wireless.

9. Additionally to enable Samsung Cloud Print, you can manage the printer remotely through SyncThru™ Web Service. Open up your browser and connect using these details. You will see this page if everything have been set up correctly.

Login : admin
Password: sec00000

Enable Touch Screen for Google Chrome in Ubuntu 14.10

My lappy, the Samsung 915S3G (see result below) which has touch screen support since the first day I've bought but never bother about it until today.
$ sudo dmidecode | grep "System Information" -A 3
System Information
    Product Name: 905S3G/906S3G/915S3G
    Version: P03RBV

Since I've been reading a lot of PDF files and the keyboard of this lappy is just atrocious, is best to enable and calibrate touch screen support to obtain the best usage experience.

First, let's install the calibration program to detect your device manufacture name. This will be useful later when you want to set the default input device to Google Chrome.
$ sudo apt-get install xinput-calibrator

Run the calibration program, touch four points on your screen to calibrate your device, and save the result. As shown below, our touch screen device name is "ELAN Touchscreen" with id of 12.
$ xinput_calibrator 
        Setting calibration data: 0, 3776, 0, 2112
Calibrating EVDEV driver for "ELAN Touchscreen" id=12
        current calibration values (from XInput): min_x=0, max_x=3776 and min_y=0, max_y=2112

Doing dynamic recalibration:
        Setting calibration data: -15, 3795, 1, 2118
        --> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ELAN Touchscreen"
        Option  "Calibration"   "-15 3795 1 2118"
        Option  "SwapAxes"      "0"

Alternatively, we can find the device id of our touch screen device using the xinput command below. The device id we need is 12.
$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=11   [slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                          id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ WebCam SC-10HDD13335N                     id=9    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]

Lastly, we'll start Google Chrome browser by setting the input device id found above.
$ google-chrome --touch-devices=12

Brightness Adjustment of Samsung Ativ Book 9 in Ubuntu 13.10

It seems that you can't adjust the brightness of this notebook using the function key Fn+F3 or Fn+F4 in Ubuntu 13.10. Even after you've set the additional kernel parameters to enable it as shown.

Edit /etc/default/grub and modify the GRUB_CMDLINE_LINUX_DEFAULT as shown.Before that, always save a backup copy so we can revert back in case we mess up somehow.
$ sudo cp /etc/default/grub /etc/default/grub.20140302
$ sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash = acpi_osi Linux acpi_backlight = vendor "

$ sudo update-grub 
$ sudo reboot

Check the kernel parameter again.
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.11.0-17-generic.efi.signed root=UUID=a3f6d437-64e9-4379-be8f-b96438dbf677 ro quiet splash acpi_osi=Linux acpi_backlight=vendor vt.handoff=7

Which in the end you still need to use AMD Catalysit Control Center to reduce the brightness so I can extend the battery life.
$ sudo apt-get install gksu
$ gksudo /usr/lib/fglrx/bin/amdcccle

Go to Color (1) and adjust the Brightness (2) using the slider under the Adjustment section. See screenshot below.